So I made a Minimap by creating another camera and using a render texture. But I don’t want shadows displaying on the minimap. How do I do that?
Sorry i’m still new with Unity.
Hey @Hisukurifu24
Attach this script to your minimap camera :
using UnityEngine;
public class CameraWithNoShadow: MonoBehaviour {
float storedShadowDistance;
void OnPreRender() {
storedShadowDistance = QualitySettings.shadowDistance;
QualitySettings.shadowDistance = 0;
}
void OnPostRender() {
QualitySettings.shadowDistance = storedShadowDistance;
}
For mode detail check MonoBehaviour.OnPreRender()
best regards
Fariborz