supermedium/superframe

Geometry merger, Colors are not working

shubhamkumar0 opened this issue · 9 comments

Here is a part of the code:

It should be something like this : https://drive.google.com/open?id=1AoUCmQ-I0bQ-yIN9ulQxKhGP74VB_h-t

But is like this : https://drive.google.com/open?id=1v6KUWqMIEJiVfu0cCsvoeNZPnNVbHp4e

What material is applied? A merged geometry will share the same material. You need to use vertex colors or something if you want different colors on certain parts of the geometry.

I am using material="vertexColors: vertex"

https://pastebin.com/x3j82mqw Here is a snippet of the code

Did you set the vertex colors of each vertex?

I tried replicating the example code and used vertex-colors-buffer="baseColor: red". However nothing changes.

You included those components? Can you post on glitch.com?

I cannot post all the files for security, however this is what I am trying to do.

It was an issue with using along with light="defaultLightsEnabled: false" in a-scene. removing this solved it for me.