UnigineScript Migration
Major changes:
- Added new scattering and environment settings functions.
- Added a new class ObjectText
engine.render Functions
UNIGINE 2.0 | UNIGINE 2.1 |
---|---|
vec4 engine.render.getAmbientColor() | Removed |
vec4 engine.render.getBackgroundColor() | Removed |
void engine.render.getEnvironmentCoefficients(int ret[] = []) | Removed |
float engine.render.getEnvironmentExposure() | Removed |
string engine.render.getEnvironmentTextureName() | Removed |
int engine.render.getScattering() | Removed |
float engine.render.getScatteringAngularity() | Removed |
float engine.render.getScatteringAreal() | Removed |
float engine.render.getScatteringDensity() | Removed |
float engine.render.getScatteringDepolarization() | Removed |
vec3 engine.render.getScatteringDirection() | Removed |
float engine.render.getScatteringEnergy() | Removed |
float engine.render.getScatteringGreenstein() | Removed |
float engine.render.getScatteringGround() | Removed |
float engine.render.getScatteringInnerAngle() | Removed |
float engine.render.getScatteringMie() | Removed |
vec4 engine.render.getScatteringMieColor() | Removed |
float engine.render.getScatteringMieHeight() | Removed |
float engine.render.getScatteringOuterAngle() | Removed |
float engine.render.getScatteringPower() | Removed |
float engine.render.getScatteringRay() | Removed |
vec4 engine.render.getScatteringRayColor() | Removed |
float engine.render.getScatteringRayHeight() | Removed |
float engine.render.getScatteringRefractive() | Removed |
float engine.render.getScatteringSun() | Removed |
vec4 engine.render.getScatteringSunColor() | Removed |
float engine.render.getScatteringThreshold() | Removed |
float engine.render.getScatteringTurbidity() | Removed |
void engine.render.setAmbientColor(vec4 color) | Removed |
void engine.render.setBackgroundColor(vec4 color) | Removed |
void engine.render.setEnvironmentCoefficients(int arg[] = []) | Removed |
void engine.render.setEnvironmentExposure(float factor) | Removed |
int engine.render.setEnvironmentTextureName(string filename) | Removed |
void engine.render.setScatteringAngularity(float angularity) | Removed |
void engine.render.setScatteringAreal(float factor) | Removed |
void engine.render.setScatteringDensity(float density) | Removed |
void engine.render.setScatteringDepolarization(float factor) | Removed |
void engine.render.setScatteringDirection(vec3 direction) | Removed |
void engine.render.setScatteringEnergy(float energy) | Removed |
void engine.render.setScatteringGreenstein(float factor) | Removed |
void engine.render.setScatteringGround(float ground) | Removed |
void engine.render.setScatteringInnerAngle(float angle) | Removed |
void engine.render.setScatteringMieColor(vec4 vec4) | Removed |
void engine.render.setScatteringMieHeight(float radius) | Removed |
void engine.render.setScatteringMie(float factor) | Removed |
void engine.render.setScatteringOuterAngle(float angle) | Removed |
void engine.render.setScatteringPower(float power) | Removed |
void engine.render.setScatteringRayColor(vec4 color) | Removed |
void engine.render.setScatteringRayHeight(float radius) | Removed |
void engine.render.setScatteringRay(float factor) | Removed |
void engine.render.setScatteringRefractive(float index) | Removed |
void engine.render.setScatteringSunColor(vec4 color) | Removed |
void engine.render.setScatteringSun(float brightness) | Removed |
void engine.render.setScatteringThreshold(float threshold) | Removed |
void engine.render.setScatteringTurbidity(float turbidity) | Removed |
New Functions and Variables
We improved scattering and environment settings in the UNIGINE 2.1 release. And instead of the removed functions (mentioned above) we provide these new UnigineScript API functions and variables:
- vec4 engine.render.getEnvironmentHazeColor(int num)
- float engine.render.getEnvironmentHazeDensity(int num)
- float engine.render.getEnvironmentHazeMaxDistance(int num)
- int engine.render.getEnvironmentHazeMode()
- float engine.render.getEnvironmentPresetIntensity(int num)
- string engine.render.getEnvironmentScatteringBaseLUTName(int num)
- vec4 engine.render.getEnvironmentScatteringGroundColor(int num)
- string engine.render.getEnvironmentScatteringGroundLUTName(int num)
- string engine.render.getEnvironmentScatteringLightColorLUTName(int num)
- string engine.render.getEnvironmentScatteringMieLUTName(int num)
- vec4 engine.render.getEnvironmentTextureColor(int num)
- string engine.render.getEnvironmentTextureName(int num)
- void engine.render.setEnvironmentHazeColor(int num,vec4 color)
- void engine.render.setEnvironmentHazeDensity(int num,float haze_density)
- void engine.render.setEnvironmentHazeMaxDistance(int num,float haze_max_distance)
- void engine.render.setEnvironmentHazeMode(int mode)
- void engine.render.setEnvironmentPresetIntensity(int num,float intensity)
- void engine.render.setEnvironmentScatteringBaseLUTName(int num,string name)
- void engine.render.setEnvironmentScatteringGroundColor(int num,vec4 color)
- void engine.render.setEnvironmentScatteringGroundLUTName(int num,string name)
- void engine.render.setEnvironmentScatteringLightColorLUTName(int num,string name)
- void engine.render.setEnvironmentScatteringMieLUTName(int num,string name)
- void engine.render.setEnvironmentTextureColor(int num,vec4 color)
- void engine.render.setEnvironmentTextureName(int num,string name)
- int RENDER_ENVIRONMENT_NUM_PRESETS
- int RENDER_HAZE_DISABLED
- int RENDER_HAZE_SCATTERING
- int RENDER_HAZE_SOLID
Xml Class
Material Class
UNIGINE 2.0 | UNIGINE 2.1 |
---|---|
int getLightBlending() | Removed |
int getPostRefraction() | Removed |
int getPostScattering() | Removed |
void setLightBlending(int mode) | Removed |
void setPostRefraction(int enable) | Removed |
void setPostScattering(int enable) | Removed |
Node Class
Player Class
LightWorld Class
ObjectMeshDynamic Class
Last update: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter