Not logged inOpenClonk Forum
Up Topic Colored lights

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to PeterW
Don't take what I say as gospel, this was just my first thoughts about approaching it. Running C4FoWLight::Render twice is probably wasteful, yes, as it calculates the whole triangle positions twice (which is a bad idea for robustness alone).

Maybe it would make more sense to have a third "pass" for the "pen"? That has a bunch of advantages - the color part of the texture probably won't need a second pass (no signed magic there), the wireframe strategy still only needs one pass total, and finally you could probably do the vertex translation right there in C4FoWDrawLightTextureStrategy::DrawVertex.

That way you especially don't need any new members or parameters. Could be quite elegant.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill