Oolite
Loading...
Searching...
No Matches
OOCombinedEmissionMapGenerator.h
Go to the documentation of this file.
1/*
2
3OOCombinedEmissionMapGenerator.h
4
5Generator which renders a single RGB emission map from some combination of
6emission_map, emission, illumination_map, illumination_color and
7emission_and_illumination_map parameters.
8
9
10Copyright (C) 2010-2013 Jens Ayton
11
12Permission is hereby granted, free of charge, to any person obtaining a copy
13of this software and associated documentation files (the "Software"), to deal
14in the Software without restriction, including without limitation the rights
15to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16copies of the Software, and to permit persons to whom the Software is
17furnished to do so, subject to the following conditions:
18
19The above copyright notice and this permission notice shall be included in all
20copies or substantial portions of the Software.
21
22THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28SOFTWARE.
29
30*/
31
33
34@class OOColor;
35
37@private
38 NSString* _cacheKey;
39
40 NSDictionary* _emissionSpec;
41 NSDictionary* _illuminationSpec;
43
50
52 GLfloat _anisotropy;
53 GLfloat _lodBias;
54
55#ifndef NDEBUG
56 NSString* _emissionDesc;
58 NSString* _diffuseDesc;
59#endif
60}
61
62- (id)initWithEmissionMapSpec:(NSDictionary*)emissionMapSpec
63 emissionColor:(OOColor*)emissionColor
64 diffuseMap:(OOTexture*)diffuseMap
65 diffuseColor:(OOColor*)diffuseColor
66 illuminationMapSpec:(NSDictionary*)illuminationMapSpec
67 illuminationColor:(OOColor*)illuminationColor
68 optionsSpecifier:(NSDictionary*)spec;
69
70- (id)initWithEmissionAndIlluminationMapSpec:(NSDictionary*)emissionAndIlluminationMapSpec
71 diffuseMap:(OOTexture*)diffuseMap
72 diffuseColor:(OOColor*)diffuseColor
73 emissionColor:(OOColor*)emissionColor
74 illuminationColor:(OOColor*)illuminationColor
75 optionsSpecifier:(NSDictionary*)spec;
76
77@end