@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.
35 lines • 1.18 kB
JavaScript
// Do not edit.
import { ShaderStore } from "../Engines/shaderStore.js";
import "./ShadersInclude/clipPlaneFragmentDeclaration.js";
import "./ShadersInclude/fogFragmentDeclaration.js";
import "./ShadersInclude/clipPlaneFragment.js";
import "./ShadersInclude/fogFragment.js";
const name = "colorPixelShader";
const shader = `
varying vColor: vec4f;
uniform color: vec4f;
@fragment
fn main(input: FragmentInputs)->FragmentOutputs {
fragmentOutputs.color=input.vColor;
fragmentOutputs.color=uniforms.color;
}`;
// Sideeffect
if (!ShaderStore.ShadersStoreWGSL[name]) {
ShaderStore.ShadersStoreWGSL[name] = shader;
}
/** @internal */
export const colorPixelShaderWGSL = { name, shader };
//# sourceMappingURL=color.fragment.js.map