full support of ObjectBase:: isReceiveShadows, isCastShadows, isAcceptLight and isAcceptFog
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
// vert //
|
||||
|
||||
flat out uint object_flags;
|
||||
|
||||
void main(void) {
|
||||
object_flags = qgl_ObjectFlags;
|
||||
if (bitfieldExtract(object_flags, 2, 1) == 0)
|
||||
return;
|
||||
qgl_MaterialIndex = qgl_Material;
|
||||
qgl_FragTexture = qgl_getFragTexture();
|
||||
gl_Position = qgl_ftransform();
|
||||
@@ -9,10 +14,14 @@ void main(void) {
|
||||
|
||||
// frag //
|
||||
|
||||
flat in uint object_flags;
|
||||
|
||||
float z_near = 0.1f;
|
||||
const float _pe = 2.4e-7;
|
||||
|
||||
void main(void) {
|
||||
if (bitfieldExtract(object_flags, 2, 1) == 0)
|
||||
discard;
|
||||
vec4 diffuse = qgl_materialTexture(QGL_MAP_DIFFUSE, qgl_FragTexture.xy, vec4(0));
|
||||
if(diffuse.a < 0.5)
|
||||
discard;
|
||||
|
||||
Reference in New Issue
Block a user