¡@

Home 

javascript Programming Glossary: vec4

Multiple transparent textures on the same mesh face in Three.js

http://stackoverflow.com/questions/16287547/multiple-transparent-textures-on-the-same-mesh-face-in-three-js

simplest vertex shader varying vec2 vUv void main vUv uv vec4 mvPosition modelViewMatrix vec4 position 1.0 gl_Position projectionMatrix.. vec2 vUv void main vUv uv vec4 mvPosition modelViewMatrix vec4 position 1.0 gl_Position projectionMatrix mvPosition And fragment.. sampler2D tSec varying vec2 vUv void main void vec3 c vec4 Ca texture2D tOne vUv vec4 Cb texture2D tSec vUv c Ca.rgb Ca.a..

How to implement this rotating spiral in WebGL? [closed]

http://stackoverflow.com/questions/4638317/how-to-implement-this-rotating-spiral-in-webgl

30.0 time 120.0 log radius 30.0 if amod 15.0 gl_FragColor vec4 0.0 0.0 0.0 1.0 else gl_FragColor vec4 1.0 1.0 1.0 1.0 The.. 15.0 gl_FragColor vec4 0.0 0.0 0.0 1.0 else gl_FragColor vec4 1.0 1.0 1.0 1.0 The spiral resizes with the browser window..