You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-AssetsLoad files from disk to use for things like images, models, and soundsA-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behavior
I expect the new texture data to be used when rendering. By any material that uses the same texture handle.
Instead the old texture is used when rendering.
Additional information
I have a workaround where i manually cause the materials that use the texture to be marked as changed in the asset system.
pubfnupdate_materials(mutground:ResMut<Assets<ExtendedMaterial<StandardMaterial,GroundMaterialExtension>>>,muttrees:ResMut<Assets<ExtendedMaterial<StandardMaterial,TreeMaterialExtension>>>,mutgrass:ResMut<Assets<GrassMaterial>>,){for _ in ground.iter_mut(){}for _ in grass.iter_mut(){}for _ in trees.iter_mut(){}}
My guess is that there is noting that connects the material asset to the texture assets that it depends on. If this is by design then feel free to close this !
The text was updated successfully, but these errors were encountered:
A-AssetsLoad files from disk to use for things like images, models, and soundsA-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behavior
Bevy version
0.14.2
What you did
I have a system that updates a texture from the cpu:
What went wrong
I expect the new texture data to be used when rendering. By any material that uses the same texture handle.
Instead the old texture is used when rendering.
Additional information
I have a workaround where i manually cause the materials that use the texture to be marked as changed in the asset system.
My guess is that there is noting that connects the material asset to the texture assets that it depends on. If this is by design then feel free to close this !
The text was updated successfully, but these errors were encountered: