类: RendererUtils

Cesium. RendererUtils

new RendererUtils()

Source:

Methods

(static) computeModelMatrix(translationopt, rotationopt, outModelMatrixopt) → {Cesium.Matrix4}

平移、旋转或缩放,返回计算之后的模型转换矩阵
Parameters:
Name Type Attributes Description
translation Cesium.Cartesian3 <optional>
rotation Object <optional>
旋转参数
Properties
Name Type Attributes Description
axis Cesium.Cartesian3 <optional>
旋转轴
angle Number <optional>
旋转角度
scale Cesium.Cartesian3 <optional>
缩放
outModelMatrix Cesium.Matrix4 <optional>
计算结果矩阵,和返回值一样,但是传递此参数时则返回值不是新创建的Cesium.Matrix4实例
Source:
Returns:
Type
Cesium.Matrix4

(static) renderToTexture(drawCommand, frameState, outpuTexture)

使用帧缓冲技术,执行渲染命令,渲染到纹理
Parameters:
Name Type Description
drawCommand Cesium.DrawCommand | Array.<Cesium.DrawCommand> 渲染命令
frameState Cesium.FrameState 帧状态对象,可以从Cesium.Scene中获取
outpuTexture Cesium.Texture 将渲染到的目标纹理对象
Source:

(static) yUp2Zup(srcMatrix, dstMatrix)

Parameters:
Name Type Description
srcMatrix Cesium.Matrix4
dstMatrix Cesium.Matrix4
Cesium.Matrix4
Source: