Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by FiEctro ( 14 years ago )
//===============================
// HL Type Decal Render
//===============================
// Çäåñü äîëæíî áûòü çíà÷åíèå ïîñëåäíåãî öâåòà èç ïîëëèòðû
int palette_red = 0;
int palette_green = 0;
int palette_blue = 0;
// Èíâåðòèðóåì çíà÷åíèÿ
int dec_red = 255 - palette_red;
int dec_green = 255 - palette_green;
int dec_blue = 255 - palette_blue;
// Ñåìøèâàåì íàøó äåêàëüêó
gl.glEnable(GL_BLEND);
gl.glBlendFunc(GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR);
gl.glColor4ub(dec_red, dec_green, dec_blue, 255);
gl.glDepthMask(GL_FALSE);
gl.glPolygonOffset ( -1, -1 );
gl.glEnable (GL_POLYGON_OFFSET_FILL);
SetTexEnvs(ENVSTATE_MUL);
Revise this Paste