diff options
| author | raysan5 <[email protected]> | 2019-12-29 13:52:48 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2019-12-29 13:52:48 +0100 |
| commit | 350cb0a8a8e8298a7446f535397c8ce335fdeb47 (patch) | |
| tree | bbd40aed90b84cdd90cd65b34322ab8ce00efa55 /src | |
| parent | cedd5efe4c899e5f99be3abd00f358c2ac75b01b (diff) | |
| download | raylib-350cb0a8a8e8298a7446f535397c8ce335fdeb47.tar.gz raylib-350cb0a8a8e8298a7446f535397c8ce335fdeb47.zip | |
GenTextureCubemap(): renamed parameter
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 2 | ||||
| -rw-r--r-- | src/rlgl.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h index 1dfcdc64..868c8a98 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1331,7 +1331,7 @@ RLAPI Matrix GetMatrixProjection(void); // Get // Texture maps generation (PBR) // NOTE: Required shaders should be provided -RLAPI Texture2D GenTextureCubemap(Shader shader, Texture2D skyHDR, int size); // Generate cubemap texture from HDR texture +RLAPI Texture2D GenTextureCubemap(Shader shader, Texture2D map, int size); // Generate cubemap texture from 2D texture RLAPI Texture2D GenTextureIrradiance(Shader shader, Texture2D cubemap, int size); // Generate irradiance texture using cubemap data RLAPI Texture2D GenTexturePrefilter(Shader shader, Texture2D cubemap, int size); // Generate prefilter texture using cubemap data RLAPI Texture2D GenTextureBRDF(Shader shader, int size); // Generate BRDF texture @@ -537,7 +537,7 @@ RLAPI Matrix GetMatrixModelview(void); // Get // Texture maps generation (PBR) // NOTE: Required shaders should be provided -RLAPI Texture2D GenTextureCubemap(Shader shader, Texture2D skyHDR, int size); // Generate cubemap texture from HDR texture +RLAPI Texture2D GenTextureCubemap(Shader shader, Texture2D map, int size); // Generate cubemap texture from HDR texture RLAPI Texture2D GenTextureIrradiance(Shader shader, Texture2D cubemap, int size); // Generate irradiance texture using cubemap data RLAPI Texture2D GenTexturePrefilter(Shader shader, Texture2D cubemap, int size); // Generate prefilter texture using cubemap data RLAPI Texture2D GenTextureBRDF(Shader shader, int size); // Generate BRDF texture using cubemap data @@ -3219,7 +3219,7 @@ Matrix GetMatrixModelview(void) // Generate cubemap texture from HDR texture // TODO: OpenGL ES 2.0 does not support GL_RGB16F texture format, neither GL_DEPTH_COMPONENT24 -Texture2D GenTextureCubemap(Shader shader, Texture2D skyHDR, int size) +Texture2D GenTextureCubemap(Shader shader, Texture2D map, int size) { Texture2D cubemap = { 0 }; #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) @@ -3280,7 +3280,7 @@ Texture2D GenTextureCubemap(Shader shader, Texture2D skyHDR, int size) // Convert HDR equirectangular environment map to cubemap equivalent glUseProgram(shader.id); glActiveTexture(GL_TEXTURE0); - glBindTexture(GL_TEXTURE_2D, skyHDR.id); + glBindTexture(GL_TEXTURE_2D, map.id); SetShaderValueMatrix(shader, shader.locs[LOC_MATRIX_PROJECTION], fboProjection); // Note: don't forget to configure the viewport to the capture dimensions |
