From 8d2487f23228c3764e7bfc8254158aa1f5ed9f3f Mon Sep 17 00:00:00 2001 From: Anton Curmanschii Date: Mon, 11 Mar 2024 22:12:31 +0200 Subject: [PATCH] Reword sentence for clarity --- raylib-generic-uber-shader-and-custom-shaders.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raylib-generic-uber-shader-and-custom-shaders.md b/raylib-generic-uber-shader-and-custom-shaders.md index 413b018..38d0f89 100644 --- a/raylib-generic-uber-shader-and-custom-shaders.md +++ b/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");