@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
33 lines • 989 B
JavaScript
// Do not edit.
import { ShaderStore } from "../Engines/shaderStore.js";
const name = "passCubePixelShader";
const shader = `varying vec2 vUV;uniform samplerCube textureSampler;
void main(void)
{vec2 uv=vUV*2.0-1.0;
gl_FragColor=textureCube(textureSampler,vec3(1.001,uv.y,uv.x));
gl_FragColor=textureCube(textureSampler,vec3(-1.001,uv.y,uv.x));
gl_FragColor=textureCube(textureSampler,vec3(uv.y,1.001,uv.x));
gl_FragColor=textureCube(textureSampler,vec3(uv.y,-1.001,uv.x));
gl_FragColor=textureCube(textureSampler,vec3(uv,1.001));
gl_FragColor=textureCube(textureSampler,vec3(uv,-1.001));
}`;
// Sideeffect
if (!ShaderStore.ShadersStore[name]) {
ShaderStore.ShadersStore[name] = shader;
}
/** @internal */
export const passCubePixelShader = { name, shader };
//# sourceMappingURL=passCube.fragment.js.map