Created
March 6, 2019 01:10
-
-
Save izumiikezaki/4eb67b6e619f9f679497922f75471583 to your computer and use it in GitHub Desktop.
This file contains 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
<script type="x-shader/x-vertex" id="vshader"> | |
varying vec3 vNormal; | |
varying vec3 pos; | |
void main() | |
{ | |
vNormal=normalMatrix * normal; | |
pos = position; | |
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); | |
} | |
</script> | |
<script type="x-shader/x-fragment" id="fshader"> | |
varying vec3 vNormal; | |
varying vec3 pos; | |
void main() | |
{ | |
gl_FragColor = vec4(vNormal, 1.0); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment