fix deprecated texture loading function name in glsl

This commit is contained in:
glitch 2023-06-30 18:32:59 -06:00
parent 9def9b04c9
commit 57adf66c58
2 changed files with 5 additions and 3 deletions

View file

@ -31,6 +31,9 @@ func main() {
// Get variable (uniform) location on the shader to connect with the program
// NOTE: If uniform variable could not be found in the shader, function returns -1
swirlCenterLoc := rl.GetShaderLocation(shader, "center")
if swirlCenterLoc == -1 {
println("Warning: [SHDR] Swirl Center uniform not found on shader")
}
swirlCenter := make([]float32, 2)
swirlCenter[0] = float32(screenWidth) / 2