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");