/// <summary> /// Sets rendering mode to view dependent projection mapping. /// - Note: This requires a AARUserView in the scene. /// </summary> /// <param name="_enable"> /// Turn projection mapping on or off (default) /// </param> public void EnableViewDependentProjection(bool _enable = true) { if (!_enable) { ResetProjectorRenderingMode(); return; } ProjectorRenderingMode = ProjectorRenderMode.View_Dependent_Projection; }
/// <summary> /// Sets rendering mode to static material /// </summary> /// <param name="_enable"> /// Turns mode on or off. /// </param> /// <param name="_staticMat"> /// The material to set. Can be a combination of shader / texture / material /// </param> public void EnableStaticMaterialRender(bool _enable, StaticMaterial _staticMat = null) { if (!_enable) { ResetProjectorRenderingMode(); return; } ProjectorRenderingMode = ProjectorRenderMode.Static_Material_Projection; ActiveStaticRenderMaterial = _staticMat != null ? _staticMat : new StaticMaterial(); }
/// <summary> /// Sets rendering mode to default /// </summary> public void ResetProjectorRenderingMode() { ProjectorRenderingMode = ProjectorRenderMode.Default_Projection; }