From 9882796df04218403fda23e2adbab8f347f88270 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 2 Oct 2021 13:07:42 +0100 Subject: [PATCH] Rename BRDG typo to BDRF (#2028) --- examples/models/models_material_pbr.c | 2 +- parser/raylib_api.json | 2 +- parser/raylib_api.txt | 2 +- parser/raylib_api.xml | 2 +- src/raylib.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/models/models_material_pbr.c b/examples/models/models_material_pbr.c index 7f11fd70..48bdfd88 100644 --- a/examples/models/models_material_pbr.c +++ b/examples/models/models_material_pbr.c @@ -229,7 +229,7 @@ static Material LoadMaterialPBR(Color albedo, float metalness, float roughness) Shader shdrBRDF = LoadShader(TextFormat("resources/shaders/glsl%i/brdf.vs", GLSL_VERSION), TextFormat("resources/shaders/glsl%i/brdf.fs", GLSL_VERSION)); - mat.maps[MATERIAL_MAP_BRDG].texture = GenTextureBRDF(shdrBRDF, BRDF_SIZE); + mat.maps[MATERIAL_MAP_BRDF].texture = GenTextureBRDF(shdrBRDF, BRDF_SIZE); UnloadShader(shdrBRDF); //-------------------------------------------------------------------------------------------------------- diff --git a/parser/raylib_api.json b/parser/raylib_api.json index b28a378c..68c0a486 100644 --- a/parser/raylib_api.json +++ b/parser/raylib_api.json @@ -1870,7 +1870,7 @@ "description": "" }, { - "name": "MATERIAL_MAP_BRDG", + "name": "MATERIAL_MAP_BRDF", "value": 10, "description": "" } diff --git a/parser/raylib_api.txt b/parser/raylib_api.txt index c90fc40d..f8500ec0 100644 --- a/parser/raylib_api.txt +++ b/parser/raylib_api.txt @@ -448,7 +448,7 @@ Enum 08: MaterialMapIndex (11 values) Value[MATERIAL_MAP_CUBEMAP]: 7 Value[MATERIAL_MAP_IRRADIANCE]: 8 Value[MATERIAL_MAP_PREFILTER]: 9 - Value[MATERIAL_MAP_BRDG]: 10 + Value[MATERIAL_MAP_BRDF]: 10 Enum 09: ShaderLocationIndex (26 values) Name: ShaderLocationIndex Description: diff --git a/parser/raylib_api.xml b/parser/raylib_api.xml index ba4629ae..896ecc33 100644 --- a/parser/raylib_api.xml +++ b/parser/raylib_api.xml @@ -407,7 +407,7 @@ - + diff --git a/src/raylib.h b/src/raylib.h index d74d6121..f27f4d45 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -708,7 +708,7 @@ typedef enum { MATERIAL_MAP_CUBEMAP, // Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP) MATERIAL_MAP_IRRADIANCE, // Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP) MATERIAL_MAP_PREFILTER, // Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP) - MATERIAL_MAP_BRDG // Brdg material + MATERIAL_MAP_BRDF // Brdf material } MaterialMapIndex; #define MATERIAL_MAP_DIFFUSE MATERIAL_MAP_ALBEDO