Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Unified Diff: samples/shadow-map.html

Issue 155718: Fixed bug where shadowmap shaders didn't compile on windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/shadow-map.html
===================================================================
--- samples/shadow-map.html (revision 21000)
+++ samples/shadow-map.html (working copy)
@@ -513,7 +513,8 @@
float4 pixelShaderFunction(PixelShaderInput input): COLOR {
// Pixels in the shadowmap store the pixel depth from the light's
// perspective in normalized device coordinates.
- return float4(input.depth.x / input.depth.y);
+ float t = input.depth.x / input.depth.y;
+ return float4(t, t, t, 1);
}
// #o3d VertexShaderEntryPoint vertexShaderFunction
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698