rj-action-library/Runtime/Procedural/Baking/MultiBaker/_XX_Spherical_Baker.cs

48 lines
927 B
C#
Raw Normal View History

2025-04-08 09:07:02 +00:00
using System.Collections;
using System.Collections.Generic;
using Godot;
using System;
using System.Threading.Tasks;
namespace Rokojori
{
[Tool][GlobalClass]
public partial class _XX_Spherical_Baker:_XX_MultiBakeMode
{
public static readonly string sphericalShader = "res://addons/rokojori_action_library/External/Imposter/materials/shaders/ImpostorShader.gdshader";
[Export]
public int sphericalSides = 4;
[Export]
public int sphericalRows = 3;
[Export]
public float minPitch = -30;
[Export]
public float maxPitch = 30;
public override int GetNumViews()
{
var views = sphericalSides * sphericalRows;
return views;
}
public override void CreateMaterial( bool preview )
{
}
public override void AssignMaterial( BakingMaterialMode mode, Texture2D texture )
{
}
public override void CreateBakers()
{
}
}
}