99265d82-c68a-4e91-ad4a-9f24206fd725.rogueMaterial 2.3 KB

1
  1. {"metadata":{"version":4.5,"type":"Object","generator":"Object3D.toJSON"},"geometries":[{"uuid":"a7f6a255-1de0-4ead-be16-eaa79e81f8c5","type":"BufferGeometry","data":{"attributes":{}}}],"materials":[{"uuid":"99265d82-c68a-4e91-ad4a-9f24206fd725","type":"ShaderMaterial","name":"VaporwaveSunShaderMaterial","transparent":true,"depthFunc":3,"depthTest":true,"depthWrite":true,"colorWrite":true,"stencilWrite":false,"stencilWriteMask":255,"stencilFunc":519,"stencilRef":0,"stencilFuncMask":255,"stencilFail":7680,"stencilZFail":7680,"stencilZPass":7680,"fog":false,"userData":{"__ASSET__":"99265d82-c68a-4e91-ad4a-9f24206fd725"},"glslVersion":null,"uniforms":{"u_time":{"value":0.004600000023841858},"u_surface_color":{"type":"c","value":16535039}},"vertexShader":"#define GLSLIFY 1\n // Common varyings\n varying vec3 v_position;\n varying vec3 v_normal;\n \n /*\n * The main program\n */\n void main() {\n // Save the varyings\n v_position = position;\n v_normal = normalize(normalMatrix * normal);\n \n // Vertex shader output\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n }\n","fragmentShader":"#define GLSLIFY 1\nuniform float u_time;\nuniform vec3 u_surface_color;\n\nvarying vec3 v_position;\nvarying vec3 v_normal;\n\nvoid main() {\n // Don't paint the pixels between the stripes\n if (cos(2.0 * v_position.y + 3.0 * u_time) < 0.0) {\n discard;\n }\n\n gl_FragColor = vec4(vec3(u_surface_color), 1.0);\n}\n","extensions":{"derivatives":true},"isMaterial":true,"blending":1,"side":0,"vertexColors":false,"opacity":1,"blendSrc":204,"blendDst":205,"blendEquation":100,"clipIntersection":false,"clipShadows":false,"polygonOffset":false,"polygonOffsetFactor":0,"polygonOffsetUnits":0,"dithering":false,"alphaToCoverage":false,"premultipliedAlpha":false,"visible":true,"toneMapped":true,"version":14,"_alphaTest":0,"isShaderMaterial":true,"linewidth":1,"wireframe":false,"wireframeLinewidth":1,"lights":false,"clipping":false,"uniformsNeedUpdate":false}],"object":{"uuid":"af309bc1-521b-4328-badc-dcb4f37ce0e6","type":"Mesh","userData":{"__IS_MATERIAL__":true},"layers":1,"matrix":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"geometry":"a7f6a255-1de0-4ead-be16-eaa79e81f8c5","material":"99265d82-c68a-4e91-ad4a-9f24206fd725"},"images":[]}