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

Make iTime an optional uniform #2015

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Make iTime an optional uniform #2015

wants to merge 1 commit into from

Conversation

yiqunw700
Copy link
Contributor

@yiqunw700 yiqunw700 commented Jan 23, 2025

Fixes: #1830

After this change, iTime does not always present in the shader code. It will require user to create one if it is used in the shader code. This way, the FrameRender doesn't need to handle iTime as a special case.

if (customUniform.name == ShaderHelper.UNIFORM_TIME) {

Copy link

github-actions bot commented Jan 23, 2025

Snapshot diff report vs base branch: main
Last updated: Fri Jan 24 19:29:21 PST 2025, Sha: 45cc53e
No differences detected

@yiqunw700 yiqunw700 force-pushed the yiqunw/shader_int_uniform branch 2 times, most recently from 957ae48 to 746337a Compare January 24, 2025 20:07
@yiqunw700 yiqunw700 force-pushed the yiqunw/iTime branch 2 times, most recently from 851f577 to 97eb7ba Compare January 24, 2025 20:39
@yiqunw700 yiqunw700 force-pushed the yiqunw/shader_int_uniform branch from 746337a to ffb75be Compare January 24, 2025 20:46
@yiqunw700 yiqunw700 requested a review from rylin8 January 24, 2025 21:09
@yiqunw700 yiqunw700 marked this pull request as ready for review January 24, 2025 21:09
Base automatically changed from yiqunw/shader_int_uniform to main January 25, 2025 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shader Plugin - support custom uniforms
1 participant