I’m painting vertex colors on my models to make them more interesting.
My question is: can I enable vertex colors in per-pixel lighting mode ? I know that I can make own custom Cg shader, but maybe there is quicker solution - switcher or something ?
Vertex colors work fine under lighting, either with per-pixel enabled or conventionally.
You probably have a material on your model that is overriding the vertex color. If you assign a color to the material, that color is used in preference to the vertex color when the material is enabled; and the material is enabled when lighting is on.
I suggest you either remove the material, or at least remove the color from the material.
Hmmm but I can’t reproduce it in my game.
What kind of maginc pview makes for L and P keys ?
I’m using in my game basic-shaders-only #f and render.setShaderAuto(), but vertex colors are not visible. Exactly same level looks ok viewed by pview.
I checked this today on old laptop with simple GPU - Intel GMA900 and everything works fine.
But I think it just doesn’t care about basic-shaders-only #f and falls back to basic shaders, because GMA900 is too simple and thats why it looks good. What do you think ?