Skip to content

Conversation

@sunag
Copy link
Collaborator

@sunag sunag commented Aug 25, 2021

Description

The new NodeMaterial system work isolate of WebGLRenderer for creating of normalView, positionView and others for that the same code can be work in WebGPURenderer too.

For this done correctly, is needed a frame update for the nodes, this update can be done in with Material.onUpdate() or Mesh.onBeforeRenderer() for example.

Material.onUpdate(): was my suggestion, this new feature is much similar with the recently implemented Material.onBuild() #21117

WebGL NodesMaterial support

  • normal

Update webgl_materials_standard_nodes example.

@sunag sunag changed the title NodeMaterial: Material.onUpdate() and updates NodeMaterial: Material.onUpdate() Aug 31, 2021
@mrdoob mrdoob added this to the r133 milestone Sep 6, 2021
@mrdoob mrdoob merged commit 53e3d53 into mrdoob:dev Sep 6, 2021
@mrdoob
Copy link
Owner

mrdoob commented Sep 6, 2021

Thanks!

@sunag sunag changed the title NodeMaterial: Material.onUpdate() NodeMaterial: Material.onBeforeRender() Sep 6, 2021
@sunag sunag deleted the dev-igalia-3 branch September 27, 2021 21:50
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.

3 participants