ARVR Ex3
ARVR Ex3
953622104048
AIM:
To Download objects from the asset store and apply lighting and shading effects.
PROCEDURE:
OUTPUT:
RESULT:
Thus Download objects from the asset store and apply lighting and shading effects
was executed successfully.
Kavya V
953622104048
Date:
AIM:
To Dynamic Lighting with Button Press.
PROCEDURE:
using UnityEngine;
void Start()
{
// Disable all lights at the start
directionalLight.enabled = false;
pointLight.enabled = false;
spotLight.enabled = false;
}
void Update()
{
if (Input.GetKeyDown(KeyCode.Alpha1)) // Press '1' for Directional Light
{
Kavya V
953622104048
directionalLight.enabled = !directionalLight.enabled;
}
if (Input.GetKeyDown(KeyCode.Alpha2)) // Press '2' for Point Light
{
pointLight.enabled = !pointLight.enabled;
}
if (Input.GetKeyDown(KeyCode.Alpha3)) // Press '3' for Spot Light
{
spotLight.enabled = !spotLight.enabled;
}
}
}
RESULT:
Thus Dynamic Lighting with Button Press was executed successfully.
PERFORMANCE(25)
VIVA VOCE(10)
RECORD(15)
TOTAL(50)