GradientShaderMaterial.rogueMaterial 1.9 KB

1
  1. {"metadata":{"version":4.5,"type":"Object","generator":"Object3D.toJSON"},"geometries":[{"uuid":"f2254736-25de-4e81-b8bb-d42b93042ae0","type":"BufferGeometry","data":{"attributes":{}}}],"materials":[{"uuid":"c747a5fa-2b6f-45c5-9e55-18d0958f37de","type":"ShaderMaterial","name":"GradientShaderMaterial","side":2,"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__":"c747a5fa-2b6f-45c5-9e55-18d0958f37de"},"glslVersion":null,"uniforms":{},"vertexShader":"varying vec3 vBC;\nvarying vec3 vUv; \nvoid main() {\n vUv = position; \n\n vec4 modelViewPosition = modelViewMatrix * vec4(position, 1.0);\n gl_Position = projectionMatrix * modelViewPosition; \n}","fragmentShader":"varying vec3 vUv;\n\nvoid main() {\n float lerpValue = vUv.y / 25.0;\n vec3 colorA = vec3(0.38, 0.16, 0.2);\n vec3 colorB = vec3(0.075, 0.067, 0.333);\n gl_FragColor = vec4(mix(colorA, colorB, lerpValue), 1.0);\n}","isMaterial":true,"blending":1,"vertexColors":false,"opacity":1,"transparent":false,"blendSrc":204,"blendDst":205,"blendEquation":100,"clipIntersection":false,"clipShadows":false,"precision":"highp","polygonOffset":false,"polygonOffsetFactor":0,"polygonOffsetUnits":0,"dithering":false,"alphaToCoverage":false,"premultipliedAlpha":false,"visible":true,"toneMapped":true,"version":74,"_alphaTest":0,"isShaderMaterial":true,"linewidth":1,"wireframe":false,"wireframeLinewidth":1,"lights":false,"clipping":false,"uniformsNeedUpdate":false,"morphTargets":false,"morphNormals":false}],"object":{"uuid":"5d835682-3f2c-489c-b3f7-c1c4fd689126","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":"f2254736-25de-4e81-b8bb-d42b93042ae0","material":"c747a5fa-2b6f-45c5-9e55-18d0958f37de"},"images":[]}