Skip to content

Commit

Permalink
removing more ShaderChunk code
Browse files Browse the repository at this point in the history
  • Loading branch information
stemkoski committed Mar 29, 2022
1 parent 9b79270 commit 32444a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shader-chunk-phong.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
${THREE.ShaderChunk["color_pars_vertex"]}
${THREE.ShaderChunk["fog_pars_vertex"]}
${THREE.ShaderChunk["normal_pars_vertex"]}
${THREE.ShaderChunk["shadowmap_pars_vertex"]}
void main()
{
Expand All @@ -61,7 +60,6 @@
${THREE.ShaderChunk["begin_vertex"]}
${THREE.ShaderChunk["project_vertex"]}
vViewPosition = - mvPosition.xyz;
${THREE.ShaderChunk["shadowmap_vertex"]}
${THREE.ShaderChunk["fog_vertex"]}
}
`,
Expand Down Expand Up @@ -95,7 +93,6 @@
void main()
{
${THREE.ShaderChunk["clipping_planes_fragment"]}
vec4 diffuseColor = vec4( diffuse, opacity );
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
vec3 totalEmissiveRadiance = emissive;
Expand Down Expand Up @@ -164,6 +161,8 @@
color = "#000337">
</a-sky>

<!-- NOTE: you must define lights, otherwise shader does not compile?! -->

<!-- testing point light, attached to camera -->

<a-camera>
Expand Down

0 comments on commit 32444a4

Please sign in to comment.