mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Reword some stuff
@ -78,7 +78,7 @@ uniform sampler2D texture0; // FS: GL_TEXTURE0
|
||||
uniform sampler2D texture1; // FS: GL_TEXTURE1
|
||||
uniform sampler2D texture2; // FS: GL_TEXTURE2
|
||||
```
|
||||
Those are the attributes/uniform names used by the internal [default shader](https://github.com/raysan5/raylib/wiki/raylib-default-shader). It's recommended to use that naming convention also on custom shaders to make sure everything will be automatically setup on `LoadShader()` but some of the default attribute names could re-defined in [config.h](https://github.com/raysan5/raylib/blob/master/src/config.h) in case it was necessary.
|
||||
Those are the attributes/uniform names used by the internal [default shader](https://github.com/raysan5/raylib/wiki/raylib-default-shader). It's recommended to use that naming convention on custom shaders as well to make sure everything will be automatically set up on `LoadShader()`. However, some of the default attribute names could be re-defined in [config.h](https://github.com/raysan5/raylib/blob/master/src/config.h) in case it was necessary.
|
||||
|
||||
Shaders are also directly related to the Material struct:
|
||||
```c
|
||||
|
||||
Reference in New Issue
Block a user