#Change the value of custom_material.vert in the shader_material_glsl at runtime.

1 messages · Page 1 of 1 (latest)

surreal burrow
#

There is an example of shader_material_glsl. https://bevyengine.org/examples/shader/shader-material-glsl/

I want to change the value of custom_material.vert at runtime during every game tick. https://github.com/bevyengine/bevy/blob/latest/assets/shaders/custom_material.vert

Is that possible?

GitHub

A refreshingly simple data-driven game engine built in Rust - bevyengine/bevy

signal anvil
pseudo reef
#

What's your use case? Recompiling new shaders all the time is very expensive, and typically can be done in better ways such as via uniform buffers