DayZ 1.26
DayZ Explorer by KGB
|
Topics | |
Light API | |
Перечисления | |
enum | CameraType { PERSPECTIVE , ORTHOGRAPHIC } |
enum | PostProcessEffectType { None = -1 , UnderWater , SSAO , DepthOfField , HBAO , RotBlur , GodRays , Rain , Snowfall , FilmGrain , RadialBlur , ChromAber , WetDistort , DynamicBlur , ColorGrading , Colors , Glow , SMAA , FXAA , Median , SunMask , GaussFilter , SSR , Distort , Ghost } |
Post-process effect type. Подробнее... | |
Функции | |
proto native void | SetListenerCamera (int camera) |
sets which camera will be a listener (for sound engine) | |
proto native void | SetCamera (int cam, vector origin, vector angle) |
proto native void | SetCameraEx (int cam, const vector mat[4]) |
Changes camera matrix. | |
proto native void | GetCamera (int cam, out vector mat[4]) |
Returns current camera transformation. | |
proto native void | SetCameraVerticalFOV (int cam, float fovy) |
proto native void | SetCameraFarPlane (int cam, float farplane) |
proto native void | SetCameraNearPlane (int cam, float nearplane) |
proto native void | SetCameraType (int cam, CameraType type) |
proto native void | SetCameraPostProcessEffect (int cam, int priority, PostProcessEffectType type, string materialPath) |
proto vector | ProjectVector (int cam, IEntity ent, vector vec) |
proto vector | UnprojectVector (int cam, float x, float y, vector dir) |
Элементы перечислений | |
---|---|
PERSPECTIVE | |
ORTHOGRAPHIC |
Post-process effect type.
Changes camera position
cam | Index of camera |
origin | position |
angle | orientation |
proto native void SetCameraPostProcessEffect | ( | int | cam, |
int | priority, | ||
PostProcessEffectType | type, | ||
string | materialPath ) |
set postprocess effect to camera To disable effect in some prioroty ppEffect, just set effectName or name to NULL
cam | number of camera |
priority | priority of effect |
type | type of effect |
materialPath | material |
Используется в ChangePPEMaterial().
proto native void SetCameraType | ( | int | cam, |
CameraType | type ) |
sets which camera will be a listener (for sound engine)