parent
96aff740fe
commit
31dd07ba30
|
@ -62,7 +62,7 @@ protected:
|
|||
struct MakeInfo {
|
||||
int flags = 0;
|
||||
String normal_path_for_roughness;
|
||||
RS::TextureDetectRoughnessChannel channel_for_roughness = RS::TEXTURE_DETECT_ROUGNHESS_R;
|
||||
RS::TextureDetectRoughnessChannel channel_for_roughness = RS::TEXTURE_DETECT_ROUGHNESS_R;
|
||||
};
|
||||
|
||||
Map<StringName, MakeInfo> make_flags;
|
||||
|
|
|
@ -2216,7 +2216,7 @@ void RendererStorageRD::MaterialData::update_textures(const Map<StringName, Vari
|
|||
RendererStorageRD *singleton = (RendererStorageRD *)RendererStorage::base_singleton;
|
||||
#ifdef TOOLS_ENABLED
|
||||
Texture *roughness_detect_texture = nullptr;
|
||||
RS::TextureDetectRoughnessChannel roughness_channel = RS::TEXTURE_DETECT_ROUGNHESS_R;
|
||||
RS::TextureDetectRoughnessChannel roughness_channel = RS::TEXTURE_DETECT_ROUGHNESS_R;
|
||||
Texture *normal_detect_texture = nullptr;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -130,11 +130,11 @@ public:
|
|||
virtual void texture_set_detect_normal_callback(RID p_texture, TextureDetectCallback p_callback, void *p_userdata) = 0;
|
||||
|
||||
enum TextureDetectRoughnessChannel {
|
||||
TEXTURE_DETECT_ROUGNHESS_R,
|
||||
TEXTURE_DETECT_ROUGNHESS_G,
|
||||
TEXTURE_DETECT_ROUGNHESS_B,
|
||||
TEXTURE_DETECT_ROUGNHESS_A,
|
||||
TEXTURE_DETECT_ROUGNHESS_GRAY,
|
||||
TEXTURE_DETECT_ROUGHNESS_R,
|
||||
TEXTURE_DETECT_ROUGHNESS_G,
|
||||
TEXTURE_DETECT_ROUGHNESS_B,
|
||||
TEXTURE_DETECT_ROUGHNESS_A,
|
||||
TEXTURE_DETECT_ROUGHNESS_GRAY,
|
||||
};
|
||||
|
||||
typedef void (*TextureDetectRoughnessCallback)(void *, const String &, TextureDetectRoughnessChannel);
|
||||
|
|
Loading…
Reference in New Issue