matcap_shader
</> ursina.shaders.matcap_shader
Variables
.matcap_shader
default: Shader(name='matcap_shader', language=Shader.GLSL,...
Examples
from ursina import *
from ursina.prefabs.primitives import *
app = Ursina()
window.color=color.black
shader = matcap_shader
a = WhiteCube(shader=shader, texture='shore')
b = WhiteSphere(shader=shader, rotation_y=180, x=3, texture='shore')
GrayPlane(scale=10, y=-2, texture='shore')
Sky(color=color.light_gray)
EditorCamera()
def update():
b.rotation_z += 1
b.rotation_y += 1
b.rotation_x += 1
print('-----------------', repr(a.shader))
app.run()