summaryrefslogtreecommitdiff
path: root/examples/ray
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ray')
-rw-r--r--examples/ray/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ray/main.lua b/examples/ray/main.lua
index 6bee146..52924df 100644
--- a/examples/ray/main.lua
+++ b/examples/ray/main.lua
@@ -53,7 +53,7 @@ function RL.draw()
RL.DrawGrid( 8, 1 )
RL.DrawRay( ray, { 255, 100, 100 } )
- RL.DrawMesh( sphereMesh, RL.defaultMaterial, RL.MatrixIdentity() )
+ RL.DrawMesh( sphereMesh, RL.GetMaterialDefault(), RL.MatrixIdentity() )
RL.DrawSphereWires( rayCol.point, 0.05, 4, 8, RL.BLUE )
RL.DrawLine3D( rayCol.point, RL.Vector3Add( rayCol.point, rayCol.normal ), RL.GREEN )
RL.EndMode3D()