Home
last modified time | relevance | path

Searched refs:plane (Results 1 - 5 of 5) sorted by relevance

/foundation/graphic/graphic_3d/lume/LumeEngine/src/util/
H A Dfrustum_util.cpp78 for (auto const& plane : frustum.planes) { in SphereFrustumCollision()
79 const float d = (plane.x * pos.x) + (plane.y * pos.y) + (plane.z * pos.z) + plane.w; in SphereFrustumCollision()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dscene_util.cpp285 // reflection plane helpers
319 SceneUtil::ReflectionPlane plane; in CreateReflectionPlaneObjectFromEntity() local
327 return plane; in CreateReflectionPlaneObjectFromEntity()
332 plane.entity = nodeEntity; in CreateReflectionPlaneObjectFromEntity()
333 plane.colorTarget = CreateReflectionPlaneGpuImage(gpuResourceMgr, *gpuHandleCM, *nameCM, in CreateReflectionPlaneObjectFromEntity()
340 plane.depthTarget = CreateReflectionPlaneGpuImage(gpuResourceMgr, *gpuHandleCM, *nameCM, in CreateReflectionPlaneObjectFromEntity()
368 plane.colorTarget; in CreateReflectionPlaneObjectFromEntity()
375 return plane; in CreateReflectionPlaneObjectFromEntity()
381 SceneUtil::ReflectionPlane plane = CreateReflectionPlaneObjectFromEntity(ecs, graphicsContext_, nodeEntity); in CreateReflectionPlaneComponent() local
382 if (EntityUtil::IsValid(plane in CreateReflectionPlaneComponent()
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_system.cpp1045 // Given position and normal of the plane, calculates plane in camera space.
1056 inline void CalculateObliqueProjectionMatrix(Math::Mat4X4& projection, const Math::Vec4& plane) in CalculateObliqueProjectionMatrix() argument
1060 const Math::Vec4 q = inverseProjection * Math::Vec4(Sgn(plane.x), Sgn(plane.y), 1.0f, 1.0f); in CalculateObliqueProjectionMatrix()
1061 const Math::Vec4 c = plane * (2.0f / Math::Dot(plane, q)); in CalculateObliqueProjectionMatrix()
1070 Math::Mat4X4 CalculateReflectionMatrix(const Math::Vec4& plane) in CalculateReflectionMatrix() argument
1074 result.data[0u] = (1.0f - 2.0f * plane[0u] * plane[ in CalculateReflectionMatrix()
[all...]
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dshadow2_demo.js83 let plane = initVertexBuffersPlane(gl);
106 draw(gl, shadowProgram, plane, matrixLight);
118 draw2(gl, program, plane, matrixCamera, floorImage);
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dshadow_demo.js81 let plane = initVertexBuffersPlane(gl);
104 draw(gl, shadowProgram, plane, matrixLight);
116 draw2(gl, program, plane, matrixCamera, floorImage);

Completed in 5 milliseconds