-
Notifications
You must be signed in to change notification settings - Fork 19
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
Labels
Comments
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
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 24, 2025
yiqunw700
added a commit
that referenced
this issue
Jan 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
float, int, color as float3 and float4, other use case for float2, float3 and float4.
The text was updated successfully, but these errors were encountered: