summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xo3d/samples/shadow-map.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/o3d/samples/shadow-map.html b/o3d/samples/shadow-map.html
index a7bb6e9..b8f4ba6 100755
--- a/o3d/samples/shadow-map.html
+++ b/o3d/samples/shadow-map.html
@@ -513,7 +513,8 @@ function moveLight(delta) {
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