The graphics device.
The vertex shader chunk name.
The fragment shader chunk name.
Optional
useTransformFeedback: boolean | Record<string, string | boolean | string[]> = falseWhether to use transform feedback. Defaults to false.
Optional
shaderDefinitionOptions: { fragmentOutputTypes?: string | string[]; useTransformFeedback?: boolean } = {}Additional options that will be added to the shader definition.
Optional
fragmentOutputTypes?: string | string[]Fragment shader output types, which default to vec4. Passing a string will set the output type for all color attachments. Passing an array will set the output type for each color attachment.
Optional
useTransformFeedback?: booleanWhether to use transform feedback. Defaults to false.
The newly created shader.
Create a shader from named shader chunks.