I'm having trouble simulating some of the blending modes for the emulator I'm working on. The GPU of the machine I'm emulating has a very flexible blender, which allows doing things like the following:
Code: Select all
OutColour = EnvColour + VertColour * (TexColour - EnvColour)
As far as I can tell, GU_TFX_BLEND works something like this:
Code: Select all
OutColour = VertColour + TexColour * (EnvColour - VertColour)
It looks like there are only 5 texture blending modes (MODULATE,DECAL,BLEND,REPLACE and ADD). I was wondering if these were just the "useful" subset of all available blending operations, or whether these are the only blending operations supported by the hardware?
I can simulate many of the available blending modes by using a few tricks (like setting the vertex colour to the environment colour, creating copies of textures with specific RGB components etc), but it looks like some of these blending modes are impossible to simulate accurately with the available sceGuTexFunc modes :(
Any help/suggestions appreciated!
Thanks.