2 * @author flimshaw / http://charliehoey.com
5 * Simulates the look of the two-strip technicolor process popular in early 20th century films.
6 * More historical info here: http://www.widescreenmuseum.com/oldcolor/technicolor1.htm
7 * Demo here: http://charliehoey.com/technicolor_shader/shader_test.html
10 THREE.TechnicolorShader = {
14 "tDiffuse": { value: null }
25 "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
33 "uniform sampler2D tDiffuse;",
38 "vec4 tex = texture2D( tDiffuse, vec2( vUv.x, vUv.y ) );",
39 "vec4 newTex = vec4(tex.r, (tex.g + tex.b) * .5, (tex.g + tex.b) * .5, 1.0);",
41 "gl_FragColor = newTex;",