diff options
Diffstat (limited to 'o3d/samples/o3d-webgl-samples/shadow-map.html')
-rw-r--r-- | o3d/samples/o3d-webgl-samples/shadow-map.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/o3d/samples/o3d-webgl-samples/shadow-map.html b/o3d/samples/o3d-webgl-samples/shadow-map.html index 7940410..97defe2 100644 --- a/o3d/samples/o3d-webgl-samples/shadow-map.html +++ b/o3d/samples/o3d-webgl-samples/shadow-map.html @@ -260,9 +260,11 @@ function initMaterials() { g_shadowSampler.minFilter = g_o3d.Sampler.POINT; g_shadowSampler.magFilter = g_o3d.Sampler.POINT; g_shadowSampler.mipFilter = g_o3d.Sampler.POINT; - g_shadowSampler.addressModeU = g_o3d.Sampler.BORDER; - g_shadowSampler.addressModeV = g_o3d.Sampler.BORDER; - g_shadowSampler.borderColor = [1, 1, 1, 1]; + // Note: The o3d-plugin used BORDER as address mode, but that is not available + // in WebGL so use WRAP instead. + g_shadowSampler.addressModeU = g_o3d.Sampler.WRAP; + g_shadowSampler.addressModeV = g_o3d.Sampler.WRAP; + //g_shadowSampler.borderColor = [1, 1, 1, 1]; } |