MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsSimpleMaterial

Function IsSimpleMaterial

Source/Engine/Renderer/RenderList.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 FORCE_INLINE bool IsSimpleMaterial(const MaterialInfo& info)
43 {
44 return EnumHasNoneFlags(info.UsageFlags, MaterialUsageFlags::UseMask | MaterialUsageFlags::UsePositionOffset | MaterialUsageFlags::UseDisplacement) &&
45 EnumHasNoneFlags(info.FeaturesFlags, MaterialFeaturesFlags::Wireframe) &&
46 info.BlendMode == MaterialBlendMode::Opaque;
47 }
48}
49
50void ShaderObjectData::Store(const Matrix& worldMatrix, const Matrix& prevWorldMatrix, const Rectangle& lightmapUVsArea, const Float3& geometrySize, float perInstanceRandom, float worldDeterminantSign, float lodDitherFactor)

Callers 1

CanBatchMethod · 0.85

Calls 1

EnumHasNoneFlagsFunction · 0.85

Tested by

no test coverage detected