Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Applying a transparent color to set of vertices with existing texture?

$
0
0

Trying to figure out what the best way would be to go about this. Say I have a model with 100s of vertices and I need to have the faces that are composed of 9 of those vertices to have a partially transparent color applied on top of the texture already used by those vertices. A good example of this would be something like a grid based tactics game where to denote your movable area, a transparent overlay is placed on top of areas in the map:

My initial thought was to pass a buffer of vertices to the vertex …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>