载入中...
搜索中...
未找到
eve::graphics::Camera3D类 参考

EVENGINE_API_BACKENDS public API. 更多...

#include <RenderSystem3D.h>

类 eve::graphics::Camera3D 继承关系图:

类

struct  Data
 Data public API. 更多...
 

Public 成员函数

void release () override
 Entity.
 
void setEye (float x, float y, float z)
 
float getEyeX ()
 Camera eye position (world space).
 
float getEyeY ()
 
float getEyeZ ()
 
void setTarget (float x, float y, float z)
 
float getTargetX ()
 Look-at target (world space).
 
float getTargetY ()
 
float getTargetZ ()
 
void setUp (float x, float y, float z)
 
void setFov (float fovYDeg)
 
float getFov ()
 Vertical field of view in degrees.
 
void setOrthographic (float height)
 Enable a pure orthographic projection with the given vertical world-space span.
 
void setPerspective ()
 Return to perspective projection, retaining the configured field of view.
 
bool isOrthographic ()
 Return whether the camera currently uses orthographic projection.
 
float getOrthoHeight ()
 Return the vertical world-space span used by orthographic projection.
 
Result< void > setPixelConfig (float pixelsPerUnit, int refWidth=0, int refHeight=0)
 Store perfect-pixel sizing for pure orthographic projection.
 
void clearPixelConfig ()
 Clear pixel sizing so applyPixelPerfect / setPixelOrthographic require a fresh config.
 
bool hasPixelConfig ()
 Return whether a pixels-per-unit config is stored.
 
void setPixelSnap (bool enabled)
 Enable or disable snapping the eye onto the view-plane pixel grid.
 
bool getPixelSnap ()
 Return whether pixel-grid snapping is enabled.
 
float getPixelsPerUnit ()
 Return configured pixels per world unit, or 0 when unset.
 
int getPixelRefWidth ()
 Return reference width, or 0 when unset.
 
int getPixelRefHeight ()
 Return reference height, or 0 when unset.
 
int getPixelScale ()
 Return the last integer upscale from applyPixelPerfect.
 
Result< void > applyPixelPerfect (int viewWidth, int viewHeight)
 Enable pure orthographic projection sized for crisp pixels from the stored config.
 
Result< void > setPixelOrthographic (float pixelsPerUnit, int viewWidth, int viewHeight, int refWidth=0, int refHeight=0)
 One-shot perfect-pixel orthographic setup: store config then apply for this viewport.
 
void snapToPixelGrid (int viewWidth, int viewHeight)
 Snap the eye onto the view-plane pixel grid for the current ortho / pixel sizing.
 
void setClipPlanes (float nearZ, float farZ)
 Set positive near/far clipping distances; far is kept beyond near.
 
float getNearClip ()
 Return the positive near clipping distance.
 
float getFarClip ()
 Return the far clipping distance.
 
void setPhysicalLens (float aperture, float focalLength)
 Set positive physical-camera aperture and focal length metadata.
 
float getAperture ()
 Return physical-camera aperture.
 
float getFocalLength ()
 Return physical-camera focal length in millimetres.
 
void setLayerCullDistance (int layer, float distance)
 Set the camera cull distance for one render layer; zero disables the override.
 
float getLayerCullDistance (int layer)
 Return the camera cull-distance override for one render layer.
 
void setShadowLayerCullDistance (int layer, float distance)
 Set the shadow-caster cull distance for one render layer; zero disables it.
 
float getShadowLayerCullDistance (int layer)
 Return the shadow-caster cull-distance override for one render layer.
 
void setActive (bool active)
 
void setAmbient (float r, float g, float b)
 
void setEnvMap (Texture *cube)
 Specular IBL cubemap (Graphics::newCubemap). nullptr disables IBL.
 
void setEnvIntensity (float intensity)
 
void setExposure (float ev)
 Set exposure compensation in photographic stops. Positive values brighten.
 
float getExposure ()
 Return exposure compensation in photographic stops.
 
void setAutoExposure (bool enabled, float minEV=-8.f, float maxEV=8.f)
 Enable log-average automatic exposure and set its EV clamp range.
 
bool isAutoExposure ()
 Return whether automatic exposure is enabled.
 
void setBloom (float intensity, float threshold=1.f)
 Configure HDR bloom. Zero intensity disables it.
 
float getBloomIntensity ()
 Return bloom intensity.
 
float getBloomThreshold ()
 Return bloom threshold in linear HDR units.
 
void setDepthOfField (float focusDistance, float maxBlurPx, float focusRange=8.f)
 Configure Gaussian depth-of-field on the final HDR resolve.
 
void clearDepthOfField ()
 Disable depth-of-field while retaining the current focus settings.
 
float getDofFocusDistance ()
 Return DOF focus distance.
 
float getDofMaxBlur ()
 Return DOF max blur in texels (0 when disabled).
 
float getDofFocusRange ()
 Return DOF focus range.
 
void setEnvProbe (float centerX, float centerY, float centerZ, float extentX, float extentY, float extentZ)
 Enable box-projected IBL for the camera environment cubemap.
 
void clearEnvProbe ()
 Disable box projection and return to an infinite-distance environment.
 
bool hasEnvProbe ()
 True when all three box-probe extents are positive.
 
float getEnvProbeCenterX ()
 
float getEnvProbeCenterY ()
 
float getEnvProbeCenterZ ()
 
float getEnvProbeExtentX ()
 
float getEnvProbeExtentY ()
 
float getEnvProbeExtentZ ()
 
void setReflectionProbe (int slot, Texture *cubemap, float centerX, float centerY, float centerZ, float extentX, float extentY, float extentZ, float intensity=1.f, float blendDistance=1.f, int priority=0)
 Configure one local reflection probe slot.
 
void clearReflectionProbe (int slot)
 Disable one local reflection probe slot.
 
int getReflectionProbeCount ()
 Return the number of enabled local reflection probes.
 
void screenToRay (float screenX, float screenY, float viewW, float viewH)
 Build a world-space picking ray from a screen pixel. Stores origin (camera eye) and normalized direction; read via getScreenRay*. viewW/viewH must match the drawable used for rendering.
 
float getScreenRayOriginX ()
 
float getScreenRayOriginY ()
 
float getScreenRayOriginZ ()
 
float getScreenRayDirX ()
 
float getScreenRayDirY ()
 
float getScreenRayDirZ ()
 

静态 Public 成员函数

static Camera3D * createCamera (ecs::Table &table= *ecs::current())
 Create an active camera in the current ECS table.
 

详细描述

EVENGINE_API_BACKENDS public API.

在文件 RenderSystem3D.h 第 28 行定义.

成员函数说明

◆ applyPixelPerfect()

Result< void > eve::graphics::Camera3D::applyPixelPerfect ( int  viewWidth,
int  viewHeight 
)

Enable pure orthographic projection sized for crisp pixels from the stored config.

参数
viewWidthDrawable width in pixels; must be > 0.
viewHeightDrawable height in pixels; must be > 0.
返回
InvalidArgument when config/viewport is invalid. @cost O(1).

在文件 RenderSystem3D.cpp 第 285 行定义.

引用了 eve::graphics::computePixelPerfectScale(), d, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, snapToPixelGrid() , 以及 eve::Result< T >::success().

被这些函数引用 setPixelOrthographic().

◆ clearDepthOfField()

void eve::graphics::Camera3D::clearDepthOfField ( )

Disable depth-of-field while retaining the current focus settings.

在文件 RenderSystem3D.cpp 第 440 行定义.

◆ clearEnvProbe()

void eve::graphics::Camera3D::clearEnvProbe ( )

Disable box projection and return to an infinite-distance environment.

在文件 RenderSystem3D.cpp 第 452 行定义.

◆ clearPixelConfig()

void eve::graphics::Camera3D::clearPixelConfig ( )

Clear pixel sizing so applyPixelPerfect / setPixelOrthographic require a fresh config.

在文件 RenderSystem3D.cpp 第 263 行定义.

引用了 d.

◆ clearReflectionProbe()

void eve::graphics::Camera3D::clearReflectionProbe ( int  slot)

Disable one local reflection probe slot.

在文件 RenderSystem3D.cpp 第 479 行定义.

引用了 eve::graphics::Camera3D::Data::kMaxReflectionProbes , 以及 slot.

◆ createCamera()

Camera3D * eve::graphics::Camera3D::createCamera ( ecs::Table &  table = *ecs::current())
static

Create an active camera in the current ECS table.

参数
tableECS table owning the result; defaults to the calling thread's current table.
返回
ECS-owned camera with its self reference initialized. @ownership ECS owns the result. @lifetime Valid until ECS destroys the entity.
注解
Call on the current ECS table owner thread; no external callbacks are invoked. @cost Allocates entity/component storage per camera creation.

在文件 CameraFactory.cpp 第 16 行定义.

引用了 c.

◆ getAperture()

float eve::graphics::Camera3D::getAperture ( )

Return physical-camera aperture.

在文件 RenderSystem3D.cpp 第 368 行定义.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ getBloomIntensity()

float eve::graphics::Camera3D::getBloomIntensity ( )

Return bloom intensity.

在文件 RenderSystem3D.cpp 第 430 行定义.

◆ getBloomThreshold()

float eve::graphics::Camera3D::getBloomThreshold ( )

Return bloom threshold in linear HDR units.

在文件 RenderSystem3D.cpp 第 431 行定义.

◆ getDofFocusDistance()

float eve::graphics::Camera3D::getDofFocusDistance ( )

Return DOF focus distance.

在文件 RenderSystem3D.cpp 第 442 行定义.

◆ getDofFocusRange()

float eve::graphics::Camera3D::getDofFocusRange ( )

Return DOF focus range.

在文件 RenderSystem3D.cpp 第 444 行定义.

◆ getDofMaxBlur()

float eve::graphics::Camera3D::getDofMaxBlur ( )

Return DOF max blur in texels (0 when disabled).

在文件 RenderSystem3D.cpp 第 443 行定义.

◆ getEnvProbeCenterX()

float eve::graphics::Camera3D::getEnvProbeCenterX ( )

在文件 RenderSystem3D.cpp 第 458 行定义.

◆ getEnvProbeCenterY()

float eve::graphics::Camera3D::getEnvProbeCenterY ( )

在文件 RenderSystem3D.cpp 第 459 行定义.

◆ getEnvProbeCenterZ()

float eve::graphics::Camera3D::getEnvProbeCenterZ ( )

在文件 RenderSystem3D.cpp 第 460 行定义.

◆ getEnvProbeExtentX()

float eve::graphics::Camera3D::getEnvProbeExtentX ( )

在文件 RenderSystem3D.cpp 第 461 行定义.

◆ getEnvProbeExtentY()

float eve::graphics::Camera3D::getEnvProbeExtentY ( )

在文件 RenderSystem3D.cpp 第 462 行定义.

◆ getEnvProbeExtentZ()

float eve::graphics::Camera3D::getEnvProbeExtentZ ( )

在文件 RenderSystem3D.cpp 第 463 行定义.

◆ getExposure()

float eve::graphics::Camera3D::getExposure ( )

Return exposure compensation in photographic stops.

在文件 RenderSystem3D.cpp 第 413 行定义.

◆ getEyeX()

float eve::graphics::Camera3D::getEyeX ( )

Camera eye position (world space).

在文件 RenderSystem3D.cpp 第 208 行定义.

被这些函数引用 eve::camera::CameraController::setCameraRoll().

◆ getEyeY()

float eve::graphics::Camera3D::getEyeY ( )

在文件 RenderSystem3D.cpp 第 209 行定义.

被这些函数引用 eve::camera::CameraController::setCameraRoll().

◆ getEyeZ()

float eve::graphics::Camera3D::getEyeZ ( )

在文件 RenderSystem3D.cpp 第 210 行定义.

被这些函数引用 eve::camera::CameraController::setCameraRoll().

◆ getFarClip()

float eve::graphics::Camera3D::getFarClip ( )

Return the far clipping distance.

在文件 RenderSystem3D.cpp 第 360 行定义.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ getFocalLength()

float eve::graphics::Camera3D::getFocalLength ( )

Return physical-camera focal length in millimetres.

在文件 RenderSystem3D.cpp 第 369 行定义.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ getFov()

float eve::graphics::Camera3D::getFov ( )

Vertical field of view in degrees.

在文件 RenderSystem3D.cpp 第 232 行定义.

◆ getLayerCullDistance()

float eve::graphics::Camera3D::getLayerCullDistance ( int  layer)

Return the camera cull-distance override for one render layer.

在文件 RenderSystem3D.cpp 第 378 行定义.

引用了 EV_PARAM_CHECK , 以及 layer.

◆ getNearClip()

float eve::graphics::Camera3D::getNearClip ( )

Return the positive near clipping distance.

在文件 RenderSystem3D.cpp 第 359 行定义.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ getOrthoHeight()

float eve::graphics::Camera3D::getOrthoHeight ( )

Return the vertical world-space span used by orthographic projection.

在文件 RenderSystem3D.cpp 第 243 行定义.

◆ getPixelRefHeight()

int eve::graphics::Camera3D::getPixelRefHeight ( )

Return reference height, or 0 when unset.

在文件 RenderSystem3D.cpp 第 281 行定义.

◆ getPixelRefWidth()

int eve::graphics::Camera3D::getPixelRefWidth ( )

Return reference width, or 0 when unset.

在文件 RenderSystem3D.cpp 第 279 行定义.

◆ getPixelScale()

int eve::graphics::Camera3D::getPixelScale ( )

Return the last integer upscale from applyPixelPerfect.

在文件 RenderSystem3D.cpp 第 283 行定义.

◆ getPixelSnap()

bool eve::graphics::Camera3D::getPixelSnap ( )

Return whether pixel-grid snapping is enabled.

在文件 RenderSystem3D.cpp 第 275 行定义.

◆ getPixelsPerUnit()

float eve::graphics::Camera3D::getPixelsPerUnit ( )

Return configured pixels per world unit, or 0 when unset.

在文件 RenderSystem3D.cpp 第 277 行定义.

◆ getReflectionProbeCount()

int eve::graphics::Camera3D::getReflectionProbeCount ( )

Return the number of enabled local reflection probes.

在文件 RenderSystem3D.cpp 第 484 行定义.

引用了 count.

◆ getScreenRayDirX()

float eve::graphics::Camera3D::getScreenRayDirX ( )

在文件 RenderSystem3D.cpp 第 582 行定义.

◆ getScreenRayDirY()

float eve::graphics::Camera3D::getScreenRayDirY ( )

在文件 RenderSystem3D.cpp 第 583 行定义.

◆ getScreenRayDirZ()

float eve::graphics::Camera3D::getScreenRayDirZ ( )

在文件 RenderSystem3D.cpp 第 584 行定义.

◆ getScreenRayOriginX()

float eve::graphics::Camera3D::getScreenRayOriginX ( )

在文件 RenderSystem3D.cpp 第 579 行定义.

◆ getScreenRayOriginY()

float eve::graphics::Camera3D::getScreenRayOriginY ( )

在文件 RenderSystem3D.cpp 第 580 行定义.

◆ getScreenRayOriginZ()

float eve::graphics::Camera3D::getScreenRayOriginZ ( )

在文件 RenderSystem3D.cpp 第 581 行定义.

◆ getShadowLayerCullDistance()

float eve::graphics::Camera3D::getShadowLayerCullDistance ( int  layer)

Return the shadow-caster cull-distance override for one render layer.

在文件 RenderSystem3D.cpp 第 392 行定义.

引用了 EV_PARAM_CHECK , 以及 layer.

◆ getTargetX()

float eve::graphics::Camera3D::getTargetX ( )

Look-at target (world space).

在文件 RenderSystem3D.cpp 第 219 行定义.

被这些函数引用 eve::camera::CameraController::setCameraRoll().

◆ getTargetY()

float eve::graphics::Camera3D::getTargetY ( )

在文件 RenderSystem3D.cpp 第 220 行定义.

被这些函数引用 eve::camera::CameraController::setCameraRoll().

◆ getTargetZ()

float eve::graphics::Camera3D::getTargetZ ( )

在文件 RenderSystem3D.cpp 第 221 行定义.

被这些函数引用 eve::camera::CameraController::setCameraRoll().

◆ hasEnvProbe()

bool eve::graphics::Camera3D::hasEnvProbe ( )

True when all three box-probe extents are positive.

在文件 RenderSystem3D.cpp 第 454 行定义.

◆ hasPixelConfig()

bool eve::graphics::Camera3D::hasPixelConfig ( )

Return whether a pixels-per-unit config is stored.

在文件 RenderSystem3D.cpp 第 271 行定义.

◆ isAutoExposure()

bool eve::graphics::Camera3D::isAutoExposure ( )

Return whether automatic exposure is enabled.

在文件 RenderSystem3D.cpp 第 422 行定义.

◆ isOrthographic()

bool eve::graphics::Camera3D::isOrthographic ( )

Return whether the camera currently uses orthographic projection.

在文件 RenderSystem3D.cpp 第 241 行定义.

◆ release()

void eve::graphics::Camera3D::release ( )
inlineoverride

Entity.

Release.

在文件 RenderSystem3D.h 第 34 行定义.

◆ screenToRay()

void eve::graphics::Camera3D::screenToRay ( float  screenX,
float  screenY,
float  viewW,
float  viewH 
)

Build a world-space picking ray from a screen pixel. Stores origin (camera eye) and normalized direction; read via getScreenRay*. viewW/viewH must match the drawable used for rendering.

在文件 RenderSystem3D.cpp 第 527 行定义.

引用了 eve::graphics::cameraProjectionVulkanRH_ZO(), d, dir, eye, fovRad, target, up , 以及 w.

◆ setActive()

void eve::graphics::Camera3D::setActive ( bool  active)

在文件 RenderSystem3D.cpp 第 398 行定义.

引用了 active.

◆ setAmbient()

void eve::graphics::Camera3D::setAmbient ( float  r,
float  g,
float  b 
)

在文件 RenderSystem3D.cpp 第 400 行定义.

引用了 b, d, g , 以及 r.

◆ setAutoExposure()

void eve::graphics::Camera3D::setAutoExposure ( bool  enabled,
float  minEV = -8.f,
float  maxEV = 8.f 
)

Enable log-average automatic exposure and set its EV clamp range.

在文件 RenderSystem3D.cpp 第 415 行定义.

引用了 d , 以及 enabled.

◆ setBloom()

void eve::graphics::Camera3D::setBloom ( float  intensity,
float  threshold = 1.f 
)

Configure HDR bloom. Zero intensity disables it.

在文件 RenderSystem3D.cpp 第 424 行定义.

引用了 d.

◆ setClipPlanes()

void eve::graphics::Camera3D::setClipPlanes ( float  nearZ,
float  farZ 
)

Set positive near/far clipping distances; far is kept beyond near.

在文件 RenderSystem3D.cpp 第 354 行定义.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ setDepthOfField()

void eve::graphics::Camera3D::setDepthOfField ( float  focusDistance,
float  maxBlurPx,
float  focusRange = 8.f 
)

Configure Gaussian depth-of-field on the final HDR resolve.

参数
focusDistanceView-space distance of the sharp plane.
maxBlurPxMaximum blur radius in texels; <= 0 disables DOF.
focusRangeDistance from focus at which blur reaches maxBlurPx.

在文件 RenderSystem3D.cpp 第 433 行定义.

引用了 d.

◆ setEnvIntensity()

void eve::graphics::Camera3D::setEnvIntensity ( float  intensity)

在文件 RenderSystem3D.cpp 第 409 行定义.

被这些函数引用 eve::graphics::ReflectionProbeCapture::requestCapture().

◆ setEnvMap()

void eve::graphics::Camera3D::setEnvMap ( Texture *  cube)

Specular IBL cubemap (Graphics::newCubemap). nullptr disables IBL.

在文件 RenderSystem3D.cpp 第 407 行定义.

被这些函数引用 eve::graphics::ReflectionProbeCapture::requestCapture().

◆ setEnvProbe()

void eve::graphics::Camera3D::setEnvProbe ( float  centerX,
float  centerY,
float  centerZ,
float  extentX,
float  extentY,
float  extentZ 
)

Enable box-projected IBL for the camera environment cubemap.

在文件 RenderSystem3D.cpp 第 446 行定义.

◆ setExposure()

void eve::graphics::Camera3D::setExposure ( float  ev)

Set exposure compensation in photographic stops. Positive values brighten.

在文件 RenderSystem3D.cpp 第 411 行定义.

◆ setEye()

void eve::graphics::Camera3D::setEye ( float  x,
float  y,
float  z 
)

在文件 RenderSystem3D.cpp 第 201 行定义.

引用了 d, x, y , 以及 z.

◆ setFov()

void eve::graphics::Camera3D::setFov ( float  fovYDeg)

在文件 RenderSystem3D.cpp 第 230 行定义.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ setLayerCullDistance()

void eve::graphics::Camera3D::setLayerCullDistance ( int  layer,
float  distance 
)

Set the camera cull distance for one render layer; zero disables the override.

在文件 RenderSystem3D.cpp 第 370 行定义.

引用了 distance, EV_PARAM_CHECK , 以及 layer.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ setOrthographic()

void eve::graphics::Camera3D::setOrthographic ( float  height)

Enable a pure orthographic projection with the given vertical world-space span.

在文件 RenderSystem3D.cpp 第 234 行定义.

引用了 height.

◆ setPerspective()

void eve::graphics::Camera3D::setPerspective ( )

Return to perspective projection, retaining the configured field of view.

在文件 RenderSystem3D.cpp 第 239 行定义.

被这些函数引用 eve::camera::CameraController::setMode().

◆ setPhysicalLens()

void eve::graphics::Camera3D::setPhysicalLens ( float  aperture,
float  focalLength 
)

Set positive physical-camera aperture and focal length metadata.

在文件 RenderSystem3D.cpp 第 361 行定义.

引用了 EV_PARAM_CHECK.

被这些函数引用 eve::camera::CameraController::applyPhotoModeField().

◆ setPixelConfig()

Result< void > eve::graphics::Camera3D::setPixelConfig ( float  pixelsPerUnit,
int  refWidth = 0,
int  refHeight = 0 
)

Store perfect-pixel sizing for pure orthographic projection.

参数
pixelsPerUnitScreen pixels per world unit at scale 1; must be finite and > 0.
refWidthVirtual width in pixels; 0 skips integer fitting.
refHeightVirtual height in pixels; 0 skips integer fitting.
返回
InvalidArgument when pixelsPerUnit or a positive reference size is invalid.

在文件 RenderSystem3D.cpp 第 245 行定义.

引用了 d, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().

被这些函数引用 setPixelOrthographic().

◆ setPixelOrthographic()

Result< void > eve::graphics::Camera3D::setPixelOrthographic ( float  pixelsPerUnit,
int  viewWidth,
int  viewHeight,
int  refWidth = 0,
int  refHeight = 0 
)

One-shot perfect-pixel orthographic setup: store config then apply for this viewport.

参数
pixelsPerUnitScreen pixels per world unit at scale 1.
viewWidthDrawable width in pixels.
viewHeightDrawable height in pixels.
refWidthOptional virtual width; 0 uses the live viewport without integer fitting.
refHeightOptional virtual height; 0 uses the live viewport without integer fitting.

在文件 RenderSystem3D.cpp 第 302 行定义.

引用了 applyPixelPerfect() , 以及 setPixelConfig().

◆ setPixelSnap()

void eve::graphics::Camera3D::setPixelSnap ( bool  enabled)

Enable or disable snapping the eye onto the view-plane pixel grid.

在文件 RenderSystem3D.cpp 第 273 行定义.

引用了 enabled.

◆ setReflectionProbe()

void eve::graphics::Camera3D::setReflectionProbe ( int  slot,
Texture *  cubemap,
float  centerX,
float  centerY,
float  centerZ,
float  extentX,
float  extentY,
float  extentZ,
float  intensity = 1.f,
float  blendDistance = 1.f,
int  priority = 0 
)

Configure one local reflection probe slot.

参数
slotSlot in [0,7].
cubemapPrefiltered cubemap; nullptr disables the slot.
blendDistanceInward edge fade distance in world units.
priorityHigher values win when more than two probes are relevant.

在文件 RenderSystem3D.cpp 第 465 行定义.

引用了 eve::graphics::Camera3D::Data::kMaxReflectionProbes, priority , 以及 slot.

◆ setShadowLayerCullDistance()

void eve::graphics::Camera3D::setShadowLayerCullDistance ( int  layer,
float  distance 
)

Set the shadow-caster cull distance for one render layer; zero disables it.

在文件 RenderSystem3D.cpp 第 384 行定义.

引用了 distance, EV_PARAM_CHECK , 以及 layer.

◆ setTarget()

void eve::graphics::Camera3D::setTarget ( float  x,
float  y,
float  z 
)

在文件 RenderSystem3D.cpp 第 212 行定义.

引用了 d, x, y , 以及 z.

◆ setUp()

void eve::graphics::Camera3D::setUp ( float  x,
float  y,
float  z 
)

在文件 RenderSystem3D.cpp 第 223 行定义.

引用了 d, x, y , 以及 z.

被这些函数引用 eve::camera::CameraController::setCameraRoll().

◆ snapToPixelGrid()

void eve::graphics::Camera3D::snapToPixelGrid ( int  viewWidth,
int  viewHeight 
)

Snap the eye onto the view-plane pixel grid for the current ortho / pixel sizing.

参数
viewWidthDrawable width used when pixel config needs a live fallback.
viewHeightDrawable height used when pixel config needs a live fallback.

在文件 RenderSystem3D.cpp 第 309 行定义.

引用了 eve::graphics::computePixelPerfectScale(), d, eye, forward, right, target , 以及 up.

被这些函数引用 applyPixelPerfect().


该类的文档由以下文件生成: