zoukankan      html  css  js  c++  java
  • UE4 Position

    Absolute World Postion

    its the position of the surface in world space. if you were to subtract world position from the location of the camera then get the length of that vector it would give you the distance to that surface. but on its own its just the coordinate of that pixel in world space.

    Object Postion

    The ObjectPositionWS expression outputs the world-space center position of the object's bounds. For example, this is useful for creating spherical lighting for foliage.

    Actor Position

    ActorPositionWS outputs Vector3 (RGB) data representing the location of the object with this material on it in world-space.

    Camera Position

    The CameraWorldPosition expression outputs a three-channel vector value representing the camera's position in world space.

    Camera Vector

    The CameraVector expression outputs a three-channel vector value representing the direction of the camera with respect to the surface, in other words, the direction from the pixel to the camera.

    Absolute world position,Object position, Actor position

    其中Object position返回的是材质赋予的Object的Bounds的中心点(坐标轴在的位置),是一个坐标值

    跟Actor position的区别是, Actor Postion返回的物体的实际坐标。

    而 absolute world position返回的是 the position of the current pixel in world space,也就是说每个像素点在空间内的坐标.

    reference: https://docs.unrealengine.com/en-US/Engine/Rendering/Materials/ExpressionReference/Coordinates/index.html

  • 相关阅读:
    安装node-gyp
    node版本切换
    electron-vue运行只出现项目目录不出现效果
    高级运维工程师的必备技术
    linux 下的shutdown指令
    数据库实体联系模型与关系模型
    数据库表设计1
    实体-关系模型
    Excel中怎么快速选中区域
    EXCEL中给包含某个字段的单元格所在行标注颜色
  • 原文地址:https://www.cnblogs.com/sunchuankai/p/13878792.html
Copyright © 2011-2022 走看看