UNPKG

three-stdlib

Version:

stand-alone library of threejs examples

1 lines 822 B
{"version":3,"file":"BasicShader.cjs","sources":["../../src/shaders/BasicShader.ts"],"sourcesContent":["/**\n * Simple test shader\n */\n\nimport type { IShader } from './types'\n\nexport type BasicShaderUniforms = {}\n\nexport interface IBasicShader extends IShader<BasicShaderUniforms> {}\n\nexport const BasicShader: IBasicShader = {\n uniforms: {},\n\n vertexShader: [\n 'void main() {',\n\n '\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );',\n\n '}',\n ].join('\\n'),\n\n fragmentShader: ['void main() {', '\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 );', '}'].join('\\n'),\n}\n"],"names":[],"mappings":";;AAUO,MAAM,cAA4B;AAAA,EACvC,UAAU,CAAC;AAAA,EAEX,cAAc;AAAA,IACZ;AAAA,IAEA;AAAA,IAEA;AAAA,EAAA,EACA,KAAK,IAAI;AAAA,EAEX,gBAAgB,CAAC,iBAAiB,+CAA+C,GAAG,EAAE,KAAK,IAAI;AACjG;;"}