Mercurial > games > semicongine
comparison semicongine/panel.nim @ 998:7e89c8fe57a8
did: add name for material types and fix shader-materialtype-compatability check
author | sam <sam@basx.dev> |
---|---|
date | Sat, 13 Apr 2024 11:09:02 +0700 |
parents | f9d25bc331b3 |
children | b5be4ea07c3c |
comparison
equal
deleted
inserted
replaced
997:fe48fb1bdfda | 998:7e89c8fe57a8 |
---|---|
17 name: "default-panel-material-type", | 17 name: "default-panel-material-type", |
18 vertexAttributes: {TRANSFORM_ATTRIB: Mat4F32, POSITION_ATTRIB: Vec3F32, UV_ATTRIB: Vec2F32}.toTable, | 18 vertexAttributes: {TRANSFORM_ATTRIB: Mat4F32, POSITION_ATTRIB: Vec3F32, UV_ATTRIB: Vec2F32}.toTable, |
19 attributes: {"panelTexture": TextureType, "color": Vec4F32}.toTable, | 19 attributes: {"panelTexture": TextureType, "color": Vec4F32}.toTable, |
20 ) | 20 ) |
21 PANEL_SHADER* = createShaderConfiguration( | 21 PANEL_SHADER* = createShaderConfiguration( |
22 name = "panel shader", | |
22 inputs = [ | 23 inputs = [ |
23 attr[Mat4](TRANSFORM_ATTRIB, memoryPerformanceHint = PreferFastWrite, perInstance = true), | 24 attr[Mat4](TRANSFORM_ATTRIB, memoryPerformanceHint = PreferFastWrite, perInstance = true), |
24 attr[Vec3f](POSITION_ATTRIB, memoryPerformanceHint = PreferFastWrite), | 25 attr[Vec3f](POSITION_ATTRIB, memoryPerformanceHint = PreferFastWrite), |
25 attr[Vec2f](UV_ATTRIB, memoryPerformanceHint = PreferFastWrite), | 26 attr[Vec2f](UV_ATTRIB, memoryPerformanceHint = PreferFastWrite), |
26 attr[uint16](MATERIALINDEX_ATTRIBUTE, memoryPerformanceHint = PreferFastRead, perInstance = true), | 27 attr[uint16](MATERIALINDEX_ATTRIBUTE, memoryPerformanceHint = PreferFastRead, perInstance = true), |