Sha256: 1c758167e3cb7405497411544c5b6fd71cf5fd561fe55a66756b5cea43ee6287
Contents?: true
Size: 1.17 KB
Versions: 19
Compression:
Stored size: 1.17 KB
Contents
#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; uniform float shininess; uniform float opacity; #include common #include color_pars_fragment #include map_pars_fragment #include alphamap_pars_fragment #include lightmap_pars_fragment #include envmap_pars_fragment #include fog_pars_fragment #include lights_phong_pars_fragment #include shadowmap_pars_fragment #include bumpmap_pars_fragment #include normalmap_pars_fragment #include specularmap_pars_fragment #include logdepthbuf_pars_fragment void main() { vec3 outgoingLight = vec3( 0.0 ); // outgoing light does not have an alpha, the surface does vec4 diffuseColor = vec4( diffuse, opacity ); #include logdepthbuf_fragment #include map_fragment #include color_fragment #include alphamap_fragment #include alphatest_fragment #include specularmap_fragment #include lights_phong_fragment #include lightmap_fragment #include envmap_fragment #include shadowmap_fragment #include linear_to_gamma_fragment #include fog_fragment fragColor = vec4( outgoingLight, diffuseColor.a ); // TODO, this should be pre-multiplied to allow for bright highlights on very transparent objects }
Version data entries
19 entries across 19 versions & 2 rubygems