Here is my code:
import numba as nb
from ursina import *
from ursina.shaders import lit_with_shadows_shader
app = Ursina()
ground = Entity(
model = 'untitled.gltf',
z = 20,
y = -3,
collider = 'box',
shader = lit_with_shadows_shader
)
pivot = Entity()
AmbientLight()
DirectionalLight(parent=pivot, y=2, z=3, shadows=True)
EditorCamera()
sky = Sky()
app.run()
I am trying to display a 3D model I got from sketchfab and without the shader = lit_with_shadows_shader
it works but when I add it in order to use the ambient light, it doesn't display the textures and it's the model but it's white and doesn't have any surface.