Reword sentence for clarity

master
Anton Curmanschii 1 year ago
parent
commit
8d2487f232
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      raylib-generic-uber-shader-and-custom-shaders.md

+ 3
- 3
raylib-generic-uber-shader-and-custom-shaders.md

@ -112,7 +112,7 @@ typedef enum {
#define MATERIAL_MAP_SPECULAR MATERIAL_MAP_METALNESS
```
When drawing, maps are internally bound or not depending on the availability:
When drawing, maps may be internally bound depending on the availability:
```c
// Default material loading example
Material material = LoadMaterialDefault(); // Default shader assigned to material
@ -120,14 +120,14 @@ material.maps[MATERIAL_MAP_DIFFUSE].texture = LoadTexture("tex_diffuse.png");
material.maps[MATERIAL_MAP_SPECULAR].texture = LoadTexture("tex_specular.png"); // texture unit 1 activated (available in material shader)
```
User can load any custom shader using provided `Material` and `Shader`structs:
User can load any custom shader using provided `Material` and `Shader` structs:
```c
Material material = { 0 }; // Empty material
material.shader = LoadShader("custom_shader.vs", "custom_shader.fs");
// Setup location points in case names are not predefined ones or more locations are required
// Set up location points in case names are not predefined ones or more locations are required
// Use: GetShaderLocation() and SetShaderValue*() functions
material.maps[0].texture = LoadTexture("tex_albedo.png");

Loading…
Cancel
Save