Add View button to edit Environment Probe texture asset
This commit is contained in:
@@ -58,6 +58,11 @@ GPUTexture* EnvironmentProbe::GetProbe() const
|
||||
return _probe ? _probe->GetTexture() : _probeTexture;
|
||||
}
|
||||
|
||||
CubeTexture* EnvironmentProbe::GetProbeAsset() const
|
||||
{
|
||||
return _probe;
|
||||
}
|
||||
|
||||
bool EnvironmentProbe::IsUsingCustomProbe() const
|
||||
{
|
||||
return _isUsingCustomProbe;
|
||||
|
||||
@@ -91,6 +91,11 @@ public:
|
||||
/// </summary>
|
||||
API_PROPERTY() GPUTexture* GetProbe() const;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the probe texture asset used during rendering (baked or custom one). Returns null when using virtual probe with realtime generation.
|
||||
/// </summary>
|
||||
API_PROPERTY() CubeTexture* GetProbeAsset() const;
|
||||
|
||||
/// <summary>
|
||||
/// True if probe is using custom cube texture (not baked).
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user