diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-11-19 14:30:41 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-11-19 14:30:41 -0500 |
commit | 6137aed0179476eaa626660885f01ea3f04f988a (patch) | |
tree | e23b07cac6c9b8df58d9700e8a2fa2c719cf965b /dimension/grammar.rules | |
parent | 30cb9cb572cf8fa942faff7384580e5e2a06a7b3 (diff) | |
download | dimension-6137aed0179476eaa626660885f01ea3f04f988a.tar.xz |
Support global ambient_light.
Diffstat (limited to 'dimension/grammar.rules')
-rw-r--r-- | dimension/grammar.rules | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dimension/grammar.rules b/dimension/grammar.rules index 1ce3e1f..0e9d6f1 100644 --- a/dimension/grammar.rules +++ b/dimension/grammar.rules @@ -55,7 +55,10 @@ GLOBAL_SETTINGS_ITEMS: /* empty */ { } ; -GLOBAL_SETTINGS_ITEM: "assumed_gamma" FLOAT { +GLOBAL_SETTINGS_ITEM: "ambient_light" COLOR { + $$ = dmnsn_new_astnode1(DMNSN_AST_AMBIENT, @$, $2); + } + | "assumed_gamma" FLOAT { dmnsn_diagnostic(@1, "WARNING: assumed_gamma not supported"); $$ = dmnsn_new_astnode1(DMNSN_AST_ASSUMED_GAMMA, @$, $2); |