UNPKG

@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.

26 lines 896 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; import "./ShadersInclude/clipPlaneFragmentDeclaration.js"; import "./ShadersInclude/logDepthDeclaration.js"; import "./ShadersInclude/logDepthFragment.js"; import "./ShadersInclude/clipPlaneFragment.js"; const name = "linePixelShader"; const shader = `#include<clipPlaneFragmentDeclaration> uniform color: vec4f; #include<logDepthDeclaration> #define CUSTOM_FRAGMENT_DEFINITIONS @fragment fn main(input: FragmentInputs)->FragmentOutputs { #define CUSTOM_FRAGMENT_MAIN_BEGIN #include<logDepthFragment> #include<clipPlaneFragment> fragmentOutputs.color=uniforms.color; #define CUSTOM_FRAGMENT_MAIN_END }`; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ export const linePixelShaderWGSL = { name, shader }; //# sourceMappingURL=line.fragment.js.map