mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-27 06:19:51 -05:00
Make use of new verifiers (Color and File) (#1510)
* Use codegen for renderable discs * Utilize color and file verifier * Add missing property assignment in exoplanets module
This commit is contained in:
@@ -86,13 +86,13 @@ documentation::Documentation RenderableCrawlingLine::Documentation() {
|
||||
new TableVerifier({
|
||||
{
|
||||
KeyColorStart,
|
||||
new DoubleVector4Verifier,
|
||||
new Color4Verifier,
|
||||
Optional::No,
|
||||
"The color at the start of the line",
|
||||
},
|
||||
{
|
||||
KeyColorEnd,
|
||||
new DoubleVector4Verifier,
|
||||
new Color4Verifier,
|
||||
Optional::No,
|
||||
"The color at the end of the line"
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace {
|
||||
"Aberration",
|
||||
"This value determines the aberration method that is used to compute the shadow "
|
||||
"cylinder."
|
||||
};
|
||||
};
|
||||
|
||||
struct [[codegen::Dictionary(RenderableShadowCylinder)]] Parameters {
|
||||
// [[codegen::verbatim(NumberPointsInfo.description)]]
|
||||
@@ -114,7 +114,7 @@ namespace {
|
||||
std::optional<float> shadowLength;
|
||||
|
||||
// [[codegen::verbatim(ShadowColorInfo.description)]]
|
||||
std::optional<glm::vec3> shadowColor;
|
||||
std::optional<glm::vec3> shadowColor [[codegen::color()]];
|
||||
|
||||
enum class TerminatorType {
|
||||
Umbral [[codegen::key("UMBRAL")]],
|
||||
|
||||
Reference in New Issue
Block a user