Skip to content

Commit

Permalink
update builtins materials
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Mar 18, 2024
1 parent 5a144c1 commit 2186a6b
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 15 deletions.
4 changes: 3 additions & 1 deletion engine/engine/content/builtins/materials/gui.material
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: "gui"
tags: "gui"
vertex_program: "/builtins/materials/gui.vp"
fragment_program: "/builtins/materials/gui.fp"
tags: "gui"
vertex_space: VERTEX_SPACE_WORLD
vertex_constants {
name: "view_proj"
type: CONSTANT_TYPE_VIEWPROJ
}
max_page_count: 0
12 changes: 10 additions & 2 deletions engine/engine/content/builtins/materials/model.material
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "model"
tags: "model"
tags: "model"
vertex_program: "/builtins/materials/model.vp"
fragment_program: "/builtins/materials/model.fp"
vertex_space: VERTEX_SPACE_LOCAL
Expand Down Expand Up @@ -39,4 +39,12 @@ fragment_constants {
w: 1.0
}
}
textures: "tex0"
samplers {
name: "tex0"
wrap_u: WRAP_MODE_CLAMP_TO_EDGE
wrap_v: WRAP_MODE_CLAMP_TO_EDGE
filter_min: FILTER_MODE_MIN_LINEAR
filter_mag: FILTER_MODE_MAG_LINEAR
max_anisotropy: 1.0
}
max_page_count: 0
11 changes: 9 additions & 2 deletions engine/engine/content/builtins/materials/particlefx.material
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
name: "particle"
tags: "particle"
vertex_program: "/builtins/materials/particlefx.vp"
fragment_program: "/builtins/materials/particlefx.fp"
tags: "particle"
vertex_space: VERTEX_SPACE_WORLD
vertex_constants {
name: "view_proj"
type: CONSTANT_TYPE_VIEWPROJ
}
fragment_constants {
name: "tint"
type: CONSTANT_TYPE_USER
value: {x: 1 y: 1 z: 1 w: 1}
value {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
}
max_page_count: 0
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: "particle_paged_atlas"
tags: "particle"
vertex_program: "/builtins/materials/particlefx_paged_atlas.vp"
fragment_program: "/builtins/materials/particlefx_paged_atlas.fp"
tags: "particle"
vertex_space: VERTEX_SPACE_WORLD
vertex_constants {
name: "view_proj"
type: CONSTANT_TYPE_VIEWPROJ
}
fragment_constants {
name: "tint"
type: CONSTANT_TYPE_USER
value: {x: 1 y: 1 z: 1 w: 1}
value {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
}
max_page_count: 4
13 changes: 10 additions & 3 deletions engine/engine/content/builtins/materials/sprite.material
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: "sprite"
tags: "tile"
vertex_program: "/builtins/materials/sprite.vp"
fragment_program: "/builtins/materials/sprite.fp"
tags: "tile"
vertex_space: VERTEX_SPACE_WORLD
vertex_constants {
name: "view_proj"
type: CONSTANT_TYPE_VIEWPROJ
}
fragment_constants {
name: "tint"
type: CONSTANT_TYPE_USER
value: {x: 1 y: 1 z: 1 w: 1}
value {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
}
samplers {
name: "texture_sampler"
Expand All @@ -18,4 +24,5 @@ samplers {
filter_min: FILTER_MODE_MIN_DEFAULT
filter_mag: FILTER_MODE_MAG_DEFAULT
max_anisotropy: 1.0
}
}
max_page_count: 0
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: "sprite_paged_atlas"
tags: "tile"
vertex_program: "/builtins/materials/sprite_paged_atlas.vp"
fragment_program: "/builtins/materials/sprite_paged_atlas.fp"
tags: "tile"
vertex_space: VERTEX_SPACE_WORLD
vertex_constants {
name: "view_proj"
type: CONSTANT_TYPE_VIEWPROJ
}
fragment_constants {
name: "tint"
type: CONSTANT_TYPE_USER
value: {x: 1 y: 1 z: 1 w: 1}
value {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
}
max_page_count: 4
samplers {
name: "texture_sampler"
wrap_u: WRAP_MODE_CLAMP_TO_EDGE
Expand All @@ -20,3 +25,4 @@ samplers {
filter_mag: FILTER_MODE_MAG_DEFAULT
max_anisotropy: 1.0
}
max_page_count: 4
11 changes: 9 additions & 2 deletions engine/engine/content/builtins/materials/tile_map.material
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: "tile_map"
tags: "tile"
vertex_program: "/builtins/materials/tile_map.vp"
fragment_program: "/builtins/materials/tile_map.fp"
tags: "tile"
vertex_space: VERTEX_SPACE_WORLD
vertex_constants {
name: "view_proj"
type: CONSTANT_TYPE_VIEWPROJ
Expand All @@ -13,5 +14,11 @@ vertex_constants {
fragment_constants {
name: "tint"
type: CONSTANT_TYPE_USER
value: {x: 1 y: 1 z: 1 w: 1}
value {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
}
max_page_count: 0

0 comments on commit 2186a6b

Please sign in to comment.