Hello, I found shadow in my demo invisible on android, but visible on pc,
are there something special to do to get shadows visible on android?
Here’s some of my codes:
String platform = GetPlatform();
renderer.reuseShadowMaps = false;
if (platform == "Android") {
renderer.shadowQuality = SHADOWQUALITY_LOW_16BIT;
}
...
// the light
Node@ lightNode = scene_.CreateChild("DirectionalLight");
lightNode.direction = Vector3(-15.0f, 15.0f, 30.0f);
Light@ light = lightNode.CreateComponent("Light");
light.lightType = LIGHT_DIRECTIONAL;
light.color = Color(1.0f, 1.0f, 1.0f);
light.castShadows = true;
light.shadowBias = BiasParameters(0.00025f, 0.5f);
light.shadowCascade = CascadeParameters(10.0f, 50.0f, 200.0f, 0.0f, 0.8f);
light.specularIntensity = 0.5f;
light.shadowIntensity = 0.3;