Ursina Engine Shader MacOSPython

Python-Programme
Anonymous
 Ursina Engine Shader MacOS

Post by Anonymous »

Ich habe Ursina frisch in einer virtuellen Umgebung installiert. Ich versuche, eine einfache Szene mit etwas Beleuchtung einzurichten:

Code: Select all

from ursina import *

class Pivot(Entity):
def update(self):
self.rotation_y += time.dt * 30

def show():
app = Ursina(development_mode=True)
EditorCamera()

main_light = DirectionalLight()
main_light.look_at(Vec3(-1, -1, -1))
main_light.color = color.white

cube = Entity(model='cube', scale=1)

camera.parent = Pivot()
camera.position = (0, 2, -20)
camera.look_at(Vec3(0, 0, 0))

app.run()

show()
Die Beleuchtung funktioniert jedoch nicht (alle Objekte schwarz).
Konsole zeigt:

Code: Select all

application successfully started
:display:gsg:glgsg(error): An error occurred while compiling GLSL vertex shader created-shader:
ERROR: created-shader:1: '' :  version '130' is not supported
:display:gsg:glgsg(error): An error occurred while compiling GLSL fragment shader created-shader:
ERROR: created-shader:2: '' :  version '140' is not supported
Ich verwende MacOS, M3 Pro.
Irgendwelche Tipps zur Behebung?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post