Type Alias IComputeShaderPath
Properties
Optionalcompute
compute?: string
Used with Effect.ShadersStore. If the vertex is set to "custom, then
Babylon.js will read from Effect.ShadersStore["customVertexShader"]
Optionalcompute Element
computeElement?: string
Used with shader code in script tags
Optionalcompute Source
computeSource?: string
Directly pass the shader code
Defines the route to the shader code. The priority is as follows:
{ computeSource: "compute shader code string"}for directly passing the shader code{ computeElement: "vertexShaderCode" }, used with shader code in script tags{ compute: "custom" }, used withEffect.ShadersStore["customVertexShader"]andEffect.ShadersStore["customFragmentShader"]"./COMMON_NAME", used with external files COMMON_NAME.vertex.fx and COMMON_NAME.fragment.fx in index.html folder.