mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
docs: update CustomPipeline graphics mod docs based on changes in syntax to support new functionality
This commit is contained in:
parent
fcfcf14e07
commit
3c00689bd6
@ -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);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user