Skip to content

Instantly share code, notes, and snippets.

View edward93's full-sized avatar

Edward Chopuryan edward93

View GitHub Profile
@paulhayes
paulhayes / Sun.cs
Last active February 25, 2024 19:06
Rotates a Unity directional light based on location and time. Includes time scale, and frame stepping for continuous use.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Entropedia
{
[RequireComponent(typeof(Light))]
[ExecuteInEditMode]