mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-10 01:09:10 -04:00
Update rlgl.h
This commit is contained in:
@ -1614,7 +1614,10 @@ void rlNormal3f(float x, float y, float z)
|
||||
normalz = RLGL.State.transform.m2*x + RLGL.State.transform.m6*y + RLGL.State.transform.m10*z;
|
||||
}
|
||||
|
||||
/* Normalize the vector if required. Default behavior assumes the normal vector is in the correct space for what the shader expects.
|
||||
// NOTE: Default behavior assumes the normal vector is in the correct space for what the shader expects,
|
||||
// it could be not normalized to 0.0f..1.0f, magnitud can be useed for some effects
|
||||
/*
|
||||
// WARNING: Vector normalization if required
|
||||
float length = sqrtf(normalx*normalx + normaly*normaly + normalz*normalz);
|
||||
if (length != 0.0f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user