VISU - PHP Game Framework

GPUHeightmapRenderer
in package

Table of Contents

Properties

$ppu  : float
The number of pixels per unit in the heightmap
$framebuffer  : Framebuffer
$gl  : GLState
$height  : int
$width  : int

Methods

__construct()  : mixed
Constructor
caputreHeightmap()  : Heightmap
Captures the heightmap from the given height geometry producers
initalizeFramebuffer()  : void

Properties

$ppu

The number of pixels per unit in the heightmap

public float $ppu = 1.0

1.0 means 1 pixel equals one unit in the heightmap if you want to have a higher resolution heightmap, set this to a higher value

Example: resolution: 1024x1024 with ppu = 1.0, will capture the are in world space of -512 to 512 on the x and z axis resolution: 1024x1024 with ppu = 2.0, will capture the are in world space of -256 to 256 on the x and z axis resolution: 2048x2048 with ppu = 2.0, will capture the are in world space of -512 to 512 on the x and z axis <- double res

Methods


        
On this page

Search results