Textures

Built-in texture assets for surface detail and UI.

Textures

A list of bundled image files you can assign via Entity(texture=…) or ShaderInput.

Texture NameNotes
noiseGrayscale noise pattern
grassTiled grass ground
vignetteBlack radial vignette overlay
arrow_rightUI arrow pointing right
test_tilesetSample tileset grid
tilemap_test_levelExample level layout
shoreSandy beach shoreline texture
file_iconGeneric file icon for UI
sky_sunsetGradient sky at sunset
radial_gradientSmooth circular gradient
circleWhite filled circle
perlin_noisePerlin noise fractal texture
brickBrick wall pattern
grass_tintableGrass that responds to color tint
circle_outlinedHollow circle outline
ursina_logoUrsina Engine logo
arrow_downUI arrow pointing down
cogGear icon
vertical_gradientSmooth vertical gradient
white_cubePlain white cubemap
horizontal_gradientSmooth horizontal gradient
folderFolder icon
rainbowFull spectrum gradient
heightmap_1Example heightmap (for terrain)
sky_defaultBasic clear-sky cubemap

Overview

All textures live under ursina/textures. Use texture_scale=(u_repeat,v_repeat) on your Entity to tile textures.

Example

from ursina import *

app = Ursina()

# applying brick texture to a cube
wall = Entity(
    model='cube',
    texture='brick',
    texture_scale=(2,2),
    position=(0,0,3)
)

# UI image using the Ursina logo
logo = Entity(
    parent=camera.ui,
    model='quad',
    texture='ursina_logo',
    scale=(0.3,0.3),
    position=(-0.7,0.45)
)

app.run()