docs: update CustomPipeline graphics mod docs based on changes in syntax to support new functionality

This commit is contained in:
iwubcode 2023-12-19 19:21:15 -06:00
parent fcfcf14e07
commit 3c00689bd6
1 changed files with 2 additions and 2 deletions

View File

@ -191,12 +191,12 @@ vec4 custom_main( in CustomShaderData data )
### Reading a texture ### Reading a texture
The following shader displays the contents of the texture denoted in the shader asset as `MY_TEX`: The following shader displays the contents of the texture denoted in the shader asset as `MY_TEX` with the first texture coordinate data:
```glsl ```glsl
vec4 custom_main( in CustomShaderData data ) vec4 custom_main( in CustomShaderData data )
{ {
return texture(samp[MY_TEX_UNIT], MY_TEX_COORD); return texture(samp_MY_TEX, TEX_COORD0);
} }
``` ```