You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add shader baker to project exporter.
Metal Support contributed by Migeran (https://migeran.com) and Stuart Carnie. Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com> Co-authored-by: Gergely Kis <gergely.kis@migeran.com>
This commit is contained in:
@@ -368,6 +368,11 @@ RS::ShaderNativeSourceCode Fog::FogShaderData::get_native_source_code() const {
|
||||
return fog_singleton->volumetric_fog.shader.version_get_native_source_code(version);
|
||||
}
|
||||
|
||||
Pair<ShaderRD *, RID> Fog::FogShaderData::get_native_shader_and_version() const {
|
||||
Fog *fog_singleton = Fog::get_singleton();
|
||||
return { &fog_singleton->volumetric_fog.shader, version };
|
||||
}
|
||||
|
||||
Fog::FogShaderData::~FogShaderData() {
|
||||
Fog *fog_singleton = Fog::get_singleton();
|
||||
ERR_FAIL_NULL(fog_singleton);
|
||||
|
||||
Reference in New Issue
Block a user