Page 1 of 1

what are those static Texture meaning in Texture.cpp

Posted: Sat May 13, 2017 11:16 am
by mknmknmknjk
what are they meaning

CTexture* CTexture::s_ptexNoTexture;
CTexture* CTexture::s_ptexNoTextureCM;
CTexture* CTexture::s_ptexWhite;
CTexture* CTexture::s_ptexGray;
CTexture* CTexture::s_ptexBlack;
CTexture* CTexture::s_ptexBlackAlpha;
CTexture* CTexture::s_ptexBlackCM;
CTexture* CTexture::s_ptexDefaultProbeCM;
CTexture* CTexture::s_ptexFlatBump;
#if !defined(_RELEASE)
how to use them

Re: what are those static Texture meaning in Texture.cpp

Posted: Tue May 16, 2017 4:08 pm
by Romulas
These are static textures used by engine, some of them are render targets, some other are simple static textures used by shaders. Lots of them updated each frame. You can use them to create new shaders. You can see the ones which are dynamic textures in editor with a cvar too.