Unlit Shader

Basic shader that applies texture without lighting.

Unlit Shader

Default inputs:

default_input = {
    'texture_scale': Vec2(1, 1),
    'texture_offset': Vec2(0.0, 0.0),
}

Example

from ursina import *
from ursina.prefabs.primitives import *

app = Ursina()
shader = unlit_shader

ground = GrayPlane(scale=10, y=-2, texture='shore', shader=shader, texture_scale=(10,10))
ground.set_shader_input('texture_scale', Vec2(2, 1))
EditorCamera()
app.run()