Home
last modified time | relevance | path

Searched refs:heightScale (Results 1 – 16 of 16) sorted by relevance

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DImageBasedHeightMap.java74 public ImageBasedHeightMap(Image colorImage, float heightScale) { in ImageBasedHeightMap() argument
76 this.heightScale = heightScale; in ImageBasedHeightMap()
116 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
121 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
130 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
135 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
164 return byte2float(buf.get())*255*heightScale; in getHeightAtPostion()
168 return (sbuf.get() & 0xFFFF) / 65535f * 255f * heightScale; in getHeightAtPostion()
DAbstractHeightMap.java62 protected float heightScale = 1.0f; field in AbstractHeightMap
85 heightScale = scale; in setHeightScale()
167 return ((heightData[x + (z * size)]) * heightScale); in getScaledHeightAtPoint()
224 hm[i] = heightScale * heightData[i]; in getScaledHeightMap()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/grid/
DFractalTileLoader.java45 private final float heightScale; field in FractalTileLoader
47 public FractalTileLoader(Basis base, float heightScale) { in FractalTileLoader() argument
49 this.heightScale = heightScale; in FractalTileLoader()
59 arr[i] = arr[i] * this.heightScale; in getHeightMapAt()
DImageTileLoader.java31 private float heightScale = 1; field in ImageTileLoader
52 public void setHeightScale(float heightScale) { in setHeightScale() argument
53 this.heightScale = heightScale; in setHeightScale()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
DHeightfieldCollisionShape.java36 protected float heightScale; field in HeightfieldCollisionShape
57 this.heightScale = 1;//don't change away from 1, we use worldScale instead to scale in createCollisionHeightfield()
106 …objectId = createShape(heightStickWidth, heightStickLength, bbuf, heightScale, minHeight, maxHeigh… in createShape()
112 …htStickWidth, int heightStickLength, ByteBuffer heightfieldData, float heightScale, float minHeigh… in createShape() argument
124 capsule.write(heightScale, "heightScale", 0); in write()
137 heightScale = capsule.readFloat("heightScale", 0); in read()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
DHeightfieldCollisionShape.java36 protected float heightScale; field in HeightfieldCollisionShape
56 this.heightScale = 1;//don't change away from 1, we use worldScale instead to scale in createCollisionHeightfield()
94 …ieldTerrainShape(heightStickWidth, heightStickLength, heightfieldData, heightScale, minHeight, max… in createShape()
111 capsule.write(heightScale, "heightScale", 0); in write()
124 heightScale = capsule.readFloat("heightScale", 0); in read()
/external/chromium_org/chrome/renderer/resources/extensions/
Dimage_util.js30 var heightScale = imageSpec.height / img.height;
31 if (heightScale < scaleFactor)
32 scaleFactor = heightScale;
/external/jmonkeyengine/engine/src/bullet-native/
Dcom_jme3_bullet_collision_shapes_HeightfieldCollisionShape.cpp50 …ghtStickWidth, jint heightStickLength, jobject heightfieldData, jfloat heightScale, jfloat minHeig… in Java_com_jme3_bullet_collision_shapes_HeightfieldCollisionShape_createShape() argument
53 …w btHeightfieldTerrainShape(heightStickWidth, heightStickLength, data, heightScale, minHeight, max… in Java_com_jme3_bullet_collision_shapes_HeightfieldCollisionShape_createShape()
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DLayoutSize.h84 void scale(float widthScale, float heightScale) in scale() argument
87 m_height *= heightScale; in scale()
122 float heightScale = height().toFloat() / aspectRatio.height().toFloat(); in fitToAspectRatio() local
124 if ((widthScale > heightScale) != (fit == AspectRatioFitGrow)) in fitToAspectRatio()
DIntSize.h66 void scale(float widthScale, float heightScale) in scale() argument
69 m_height = static_cast<int>(static_cast<float>(m_height) * heightScale); in scale()
DFloatRect.cpp263 float heightScale = destRect.height() / srcRect.height(); in mapRect() local
265 destRect.y() + (r.y() - srcRect.y()) * heightScale, in mapRect()
266 r.width() * widthScale, r.height() * heightScale); in mapRect()
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/
DGBuf.frag45 float heightScale = 0.05;
46 float heightBias = heightScale * -0.5;
47 height = (height * heightScale + heightBias);
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/
DParallax.glsllib72 float heightScale = parallaxScale;
73 float heightBias = heightScale* -0.6;
75 h = (h * heightScale + heightBias) * normView.z;
/external/chromium_org/third_party/WebKit/Source/core/html/
DImageDocument.cpp228 float heightScale = (float)windowSize.height() / imageSize.height(); in scale() local
230 return min(widthScale, heightScale); in scale()
/external/chromium_org/third_party/WebKit/Source/core/fetch/
DImageResource.cpp252 float heightScale = m_image->hasRelativeHeight() ? 1.0f : multiplier; in imageSizeForRenderer() local
254 imageSize.scale(widthScale, heightScale); in imageSizeForRenderer()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderThemeChromiumMac.mm826 CGFloat heightScale = r.height() / kSquareSize;
828 heightScale, 0, // A B
829 0, heightScale, // C D