Created
May 17, 2016 21:25
-
-
Save mattdesl/e4c91148e97ea2778653ca0cf96ee84d to your computer and use it in GitHub Desktop.
shadow on transparent plane ThreeJS r76
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uniform vec3 diffuse; | |
uniform vec3 emissive; | |
uniform float opacity; | |
varying vec3 vLightFront; | |
#ifdef DOUBLE_SIDED | |
varying vec3 vLightBack; | |
#endif | |
#include <common> | |
#include <packing> | |
#include <lights_pars> | |
#include <shadowmap_pars_fragment> | |
#include <shadowmask_pars_fragment> | |
void main() { | |
gl_FragColor = vec4(vec3(0.0), 1.0 - getShadowMask()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment