Hi Forum,
I’m having some problems with the RimLighting fabric. My ultimate goal is to take an image and apply a highlight around the edge to indicate that the object is “selected”. I started down the path of using a combined material of Image and RimLighting but couldn’t get the Rimlighting to show correctly. I then tried just getting a polygon (circle) with Rim Lighting to show up but I can’t seem to see any actual “rim” on the polygon, its as if i’m using just a regular ‘color’ material.
I tried looking at the materials sandcastle example but it uses a global polygon extent, which makes it difficult to see the “rim”, so I modified it to just use a simple circle polygon and still do not see any rim effect. I’ve attached my modified “materials” example, with the other materials demo stripped out. Hopefully you can just copy paste it into the sandcastle window. I was wondering if someone knowledgeable it could tell me what I’m doing wrong?
Any help would greatly be appreciated. If I figure out my ultimate goal (image with a highlight around it) using these textures, I think it might be a good example to close the “TODO: need simple but inspiring example of writing custom materials with Fabric” mentioned in the Fabric Wiki
Mike
rimLighting.js (3.14 KB)