mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
24
brutal.gltf/Brutal.Gltf/GltfApi/Gltf.cs
Normal file
24
brutal.gltf/Brutal.Gltf/GltfApi/Gltf.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
namespace Brutal.GltfApi;
|
||||
|
||||
public partial class Gltf : IExtensionGltfObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Wraps light data for the KHR_lights_punctual extension.
|
||||
/// </summary>
|
||||
private LightsPunctualGltfDocumentExtension? m_lightData;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the extension data for KHR_lights_punctual if it exists.
|
||||
/// This extension contains information about punctual lights in the scene.
|
||||
/// If the extension is not present, this property returns null.
|
||||
/// </summary>
|
||||
public LightsPunctualGltfDocumentExtension? LightData
|
||||
{
|
||||
get
|
||||
{
|
||||
if (m_lightData == null)
|
||||
m_lightData = this.GetExtension<LightsPunctualGltfDocumentExtension>("KHR_lights_punctual");
|
||||
return m_lightData;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue