Created
April 11, 2012 11:11
-
-
Save toshinoritakata/2358663 to your computer and use it in GitHub Desktop.
mentalrayでMaxのシーン情報を取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 構造体を用意して | |
struct MaxSceneData { | |
miBoolean IsMtlEdit; | |
miColor AmbientLight; | |
miColor GlobalLightLevel; | |
miBoolean ForceDoubleSided; | |
miScalar GammaCorrection; | |
miScalar NearRange; | |
miScalar FarRange; | |
miScalar PhysicalScale; | |
miScalar PixelAspectRatio; | |
miTag ToneOpShader; | |
miColor backgroundColor; | |
miBoolean doingBakeToTexture; | |
miBoolean ToneOpInactive; | |
miScalar InternalToMeterScale; | |
miBoolean IsProtein; | |
miBoolean IsYUp; | |
miScalar BlurredReflectionMultiplier; | |
miScalar BlurredRefractionMultiplier; | |
miInteger AreaShadowSamples; | |
miBoolean clientManagesUVTransforms; | |
miInteger renderQuality; | |
}; | |
// シェーダ内でこうやって取得する | |
const miOptions* options = state->options; | |
miTag userDataTag = options->userdata; | |
MaxSceneData *scenedata; | |
mi_query(miQ_DATA_PARAM, state, userDataTag, &scenedata); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment