diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/iqm_test/main.lua | 2 | ||||
| -rw-r--r-- | examples/platformer/main.lua | 2 | ||||
| -rw-r--r-- | examples/resources/shaders/glsl330/base.fs | 9 | ||||
| -rw-r--r-- | examples/resources/shaders/glsl330/base.vs | 10 |
4 files changed, 11 insertions, 12 deletions
diff --git a/examples/iqm_test/main.lua b/examples/iqm_test/main.lua index 66aed82..01afebe 100644 --- a/examples/iqm_test/main.lua +++ b/examples/iqm_test/main.lua @@ -43,7 +43,7 @@ function RL.init() } ) model = RL.LoadModel( RL.GetBasePath().."../resources/iqm/monkey.iqm" ) -- Unload old material. - RL.UnloadMaterial( RL.GetModelMaterial( model, 0 ) ) + RL.UnloadMaterial( RL.GetModelMaterial( model, 0 ), true ) RL.SetModelMaterial( model, 0, material ) animations = RL.LoadModelAnimations( RL.GetBasePath().."../resources/iqm/monkey.iqm" ) diff --git a/examples/platformer/main.lua b/examples/platformer/main.lua index 9e71984..299e1b8 100644 --- a/examples/platformer/main.lua +++ b/examples/platformer/main.lua @@ -286,7 +286,7 @@ local function drawPlayer() end function RL.draw() - RL.ClearBackground( RL.RED ) + RL.ClearBackground( RL.BLACK ) RL.BeginTextureMode( framebuffer ) drawMap() diff --git a/examples/resources/shaders/glsl330/base.fs b/examples/resources/shaders/glsl330/base.fs index 57d9725..c36eead 100644 --- a/examples/resources/shaders/glsl330/base.fs +++ b/examples/resources/shaders/glsl330/base.fs @@ -14,11 +14,10 @@ out vec4 finalColor; // NOTE: Add here your custom variables void main() { - // Texel color fetching from texture sampler - vec4 texelColor = texture( texture0, fragTexCoord ); + // Texel color fetching from texture sampler + vec4 texelColor = texture( texture0, fragTexCoord ); - // NOTE: Implement here your fragment shader code + // NOTE: Implement here your fragment shader code - finalColor = texelColor * colDiffuse; + finalColor = texelColor * colDiffuse; } - diff --git a/examples/resources/shaders/glsl330/base.vs b/examples/resources/shaders/glsl330/base.vs index 04f50db..c6e94f6 100644 --- a/examples/resources/shaders/glsl330/base.vs +++ b/examples/resources/shaders/glsl330/base.vs @@ -16,10 +16,10 @@ out vec4 fragColor; // NOTE: Add here your custom variables void main() { - // Send vertex attributes to fragment shader - fragTexCoord = vertexTexCoord; - fragColor = vertexColor; + // Send vertex attributes to fragment shader + fragTexCoord = vertexTexCoord; + fragColor = vertexColor; - // Calculate final vertex position - gl_Position = mvp * vec4( vertexPosition, 1.0 ); + // Calculate final vertex position + gl_Position = mvp * vec4( vertexPosition, 1.0 ); }
\ No newline at end of file |
