Mike_H
01-07-2006 19:53:40
Hi,
Im having trouble moving a shader made in rendermonkey to ofusion, all is well except in the final line of the ps :
inDiff is the diffuse lighting which is then multiplied with the result of the combination of the base texture and the cube map.
This allworks and looks great in rendermonkey but when tried in ofusion all is well untill the envmap texture unit is added it then becomes quite dark, and it seems my only option then is to select a blend mode specified in the texture unit dialog...modulate is too dark and add is too bright....i would like to use the method in the shader to get the effect i want. is this possible?
I hope someone can help, i am quite new to shaders and ofusion so if ive missed something along the way i wont be surprised although i have looked through the tutorials and example files but none seem to answer my question. Also are render targets supported in this latest version?
Regards,
Mike.
Im having trouble moving a shader made in rendermonkey to ofusion, all is well except in the final line of the ps :
return inDiff * (0.6*tex2D(Paint,inTex)+0.4*texCUBE(EnvMap,inReflect));inDiff is the diffuse lighting which is then multiplied with the result of the combination of the base texture and the cube map.
This allworks and looks great in rendermonkey but when tried in ofusion all is well untill the envmap texture unit is added it then becomes quite dark, and it seems my only option then is to select a blend mode specified in the texture unit dialog...modulate is too dark and add is too bright....i would like to use the method in the shader to get the effect i want. is this possible?
I hope someone can help, i am quite new to shaders and ofusion so if ive missed something along the way i wont be surprised although i have looked through the tutorials and example files but none seem to answer my question. Also are render targets supported in this latest version?
Regards,
Mike.