The graphics device.
The vertex shader chunk name.
The fragment shader chunk name.
OptionaluseTransformFeedback: boolean | Record<string, string | boolean | string[]> = falseWhether to use transform feedback. Defaults to false.
OptionalshaderDefinitionOptions: { fragmentOutputTypes?: string | string[]; useTransformFeedback?: boolean } = {}Additional options that will be added to the shader definition.
OptionalfragmentOutputTypes?: 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.
OptionaluseTransformFeedback?: booleanWhether to use transform feedback. Defaults to false.
The newly created shader.
Create a shader from named shader chunks.