Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader Plugin - support custom uniforms #1830

Open
yiqunw700 opened this issue Dec 2, 2024 · 0 comments · May be fixed by #2015
Open

Shader Plugin - support custom uniforms #1830

yiqunw700 opened this issue Dec 2, 2024 · 0 comments · May be fixed by #2015
Assignees
Labels

Comments

@yiqunw700
Copy link
Contributor

yiqunw700 commented Dec 2, 2024

float, int, color as float3 and float4, other use case for float2, float3 and float4.

@yiqunw700 yiqunw700 moved this to New in DesignCompose Dec 2, 2024
@yiqunw700 yiqunw700 self-assigned this Dec 2, 2024
github-merge-queue bot pushed a commit that referenced this issue Jan 17, 2025
Towards: #1830 
Support float and color uniform.

Type set by plugin: float -> float, color -> float3, color with alpha ->
float4
Shader API: 
- float->`setFloatUniform(name, value)`
- color->`setFloatUniform(name, value1, value2, value3)`
- color with alpha -> `setFloatUniform(name, value1, value2, value3,
value4)`

Parse:
shader_schema.rs: `ShaderUniformJson` -> `ShaderUniform`

Customization supports:
- `List<ShaderUniform>`
- `List<State<ShaderUniform>>`

Helper functions to create:
- `float` -> `ShaderUniform`
- `FloatState`->`State<ShaderUniform>`
- `Color`->`ShaderUniform`
- `State<Color>`->`State<ShaderUniform>`
@yiqunw700 yiqunw700 moved this from New to In Progress in DesignCompose Jan 17, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 23, 2025
@yiqunw700 yiqunw700 linked a pull request Jan 23, 2025 that will close this issue
yiqunw700 added a commit that referenced this issue Jan 23, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
yiqunw700 added a commit that referenced this issue Jan 24, 2025
github-merge-queue bot pushed a commit that referenced this issue Jan 25, 2025
yiqunw700 added a commit that referenced this issue Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant