OpenGL: Readable name fixes
This commit is contained in:
parent
0de98898a3
commit
ded463ea25
@ -19,14 +19,17 @@ height=640
|
|||||||
type=float
|
type=float
|
||||||
default=1
|
default=1
|
||||||
pass[0]=false
|
pass[0]=false
|
||||||
|
readableName=Light brightness
|
||||||
|
|
||||||
[uniform.reflectionBrightness]
|
[uniform.reflectionBrightness]
|
||||||
type=float
|
type=float
|
||||||
default=0.07
|
default=0.07
|
||||||
pass[0]=false
|
pass[0]=false
|
||||||
|
readableName=Reflection brightness
|
||||||
|
|
||||||
[uniform.reflectionDistance]
|
[uniform.reflectionDistance]
|
||||||
type=float2
|
type=float2
|
||||||
default[0]=0
|
default[0]=0
|
||||||
default[1]=0.025
|
default[1]=0.025
|
||||||
pass[0]=false
|
pass[0]=false
|
||||||
|
readableName=Reflection distance
|
||||||
|
@ -683,13 +683,13 @@ static bool _loadUniform(struct Configuration* description, size_t pass, struct
|
|||||||
_loadValue(description, uniform->name, uniform->type, "default", &uniform->value);
|
_loadValue(description, uniform->name, uniform->type, "default", &uniform->value);
|
||||||
_loadValue(description, uniform->name, uniform->type, "min", &uniform->min);
|
_loadValue(description, uniform->name, uniform->type, "min", &uniform->min);
|
||||||
_loadValue(description, uniform->name, uniform->type, "max", &uniform->max);
|
_loadValue(description, uniform->name, uniform->type, "max", &uniform->max);
|
||||||
uniform->name = strdup(uniform->name + strlen("uniform."));
|
|
||||||
const char* readable = ConfigurationGetValue(description, uniform->name, "readableName");
|
const char* readable = ConfigurationGetValue(description, uniform->name, "readableName");
|
||||||
if (readable) {
|
if (readable) {
|
||||||
uniform->readableName = strdup(readable);
|
uniform->readableName = strdup(readable);
|
||||||
} else {
|
} else {
|
||||||
uniform->readableName = 0;
|
uniform->readableName = 0;
|
||||||
}
|
}
|
||||||
|
uniform->name = strdup(uniform->name + strlen("uniform."));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user