Oolite 1.91.0.7646-241128-10e222e
|
import "OOMaterialConvenienceCreators.h"
import "OOMaterialSpecifier.h"
import "OOOpenGLExtensionManager.h"
import "OOShaderMaterial.h"
import "OOSingleTextureMaterial.h"
import "OOMultiTextureMaterial.h"
import "OOCollectionExtractors.h"
import "Universe.h"
import "OOCacheManager.h"
import "OOTexture.h"
import "OODebugFlags.h"
Go to the source code of this file.
Classes | |
struct | OOMaterialSynthContext |
Macros | |
#define | USE_NEW_SHADER_SYNTHESIZER 0 |
Functions | |
static void | SetUniform (NSMutableDictionary *uniforms, NSString *key, NSString *type, id value) |
static void | SetUniformFloat (OOMaterialSynthContext *context, NSString *key, float value) |
static void | AddTexture (OOMaterialSynthContext *context, NSString *uniformName, NSString *nonShaderKey, NSString *macroName, NSDictionary *specifier) |
static void | AddColorIfAppropriate (OOMaterialSynthContext *context, SEL selector, NSString *key, NSString *macroName) |
static void | AddMacroColorIfAppropriate (OOMaterialSynthContext *context, SEL selector, NSString *macroName) |
static void | SynthDiffuse (OOMaterialSynthContext *context, NSString *name) |
static void | SynthEmissionAndIllumination (OOMaterialSynthContext *context) |
static void | SynthNormalMap (OOMaterialSynthContext *context) |
static void | SynthSpecular (OOMaterialSynthContext *context) |
#define USE_NEW_SHADER_SYNTHESIZER 0 |
Definition at line 29 of file OOMaterialConvenienceCreators.m.
|
static |
Definition at line 420 of file OOMaterialConvenienceCreators.m.
References nil, and OOColor::normalizedArray.
Referenced by SynthDiffuse(), and SynthEmissionAndIllumination().
|
static |
Definition at line 432 of file OOMaterialConvenienceCreators.m.
References OOColor::alphaComponent, OOColor::blueComponent, OOColor::greenComponent, nil, and OOColor::redComponent.
Referenced by SynthEmissionAndIllumination().
|
static |
Definition at line 402 of file OOMaterialConvenienceCreators.m.
References count, OOMaterialSynthContext::maxTextures, nil, SetUniform(), OOMaterialSynthContext::textures, OOMaterialSynthContext::texturesUsed, and OOMaterialSynthContext::uniforms.
Referenced by SynthDiffuse(), SynthEmissionAndIllumination(), SynthNormalMap(), and SynthSpecular().
|
static |
Definition at line 390 of file OOMaterialConvenienceCreators.m.
Referenced by AddTexture(), and SetUniformFloat().
|
static |
Definition at line 396 of file OOMaterialConvenienceCreators.m.
References SetUniform(), and OOMaterialSynthContext::uniforms.
Referenced by SynthNormalMap(), and SynthSpecular().
|
static |
Definition at line 448 of file OOMaterialConvenienceCreators.m.
References AddColorIfAppropriate(), AddTexture(), kOOMaterialDiffuseColorName, kOOMaterialDiffuseMapName, OOMaterialSynthContext::maxTextures, nil, and OOMaterialSynthContext::texturesUsed.
|
static |
Definition at line 472 of file OOMaterialConvenienceCreators.m.
References AddColorIfAppropriate(), AddMacroColorIfAppropriate(), AddTexture(), kOOMaterialEmissionColorName, OOMaterialSynthContext::maxTextures, nil, and OOMaterialSynthContext::texturesUsed.
|
static |
Definition at line 524 of file OOMaterialConvenienceCreators.m.
References AddTexture(), OOMaterialSynthContext::inConfig, OOMaterialSynthContext::maxTextures, nil, SetUniformFloat(), and OOMaterialSynthContext::texturesUsed.
|
static |
Definition at line 551 of file OOMaterialConvenienceCreators.m.
References AddTexture(), kOOMaterialDiffuseMapName, OOMaterialSynthContext::maxTextures, nil, OOColor::normalizedArray, SetUniformFloat(), and OOMaterialSynthContext::texturesUsed.