Question: I am working on a scenario, where application is composed of Typescript (CPU) and Shaders (GPU) and Camera is being emulated. Scene contains camera and
I am working on a scenario, where application is composed of Typescript (CPU) and Shaders (GPU) and Camera is being emulated.
Scene contains camera and other objects.
We need to set correct camera properties like 1. Centre the point the camera looks at 2. Camera Position (vec3) 3. Camera up Y-Axis of camera (vec3) 4. Cameras Vertical Field of View. (number) 5. Cameras fov (GLFloat) , Receives as input distance from target (number) & Width (number
This function will receive inputs like Focal Width, Max & Min Distance view Target(Interpolation factor is 1, better version of interpolation factor, Rotation (lat/long in radians ), view target(this contains scenes point of interest).
All in typescript . Camera class from webgl-operate is being used and is passed in this function.
Please provide necessary code (typescript)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
