Procházet zdrojové kódy

Fixed image formating issue.

mitm před 7 roky
rodič
revize
1def54feec

+ 9 - 0
src/docs/asciidoc/jme3/advanced/light_and_shadow.adoc

@@ -46,11 +46,14 @@ You can get a list of all lights added to a Spatial by calling `getWorldLightLis
 
 === PointLight
 
+[.float-group]
+--
 [.right.text-left]
 image::jme3/advanced/elephant-pointlights.png[An elephant model illuminated by pointlights,width="300",height="205",align="right"]
 
 
 A PointLight has a location and shines from there in all directions as far as its radius reaches. The light intensity decreases with increased distance from the light source. A PointLight can be used to cast shadows along with a PointLightShadowRenderer (see the Casting Shadows section)
+--
 
 *Typical example:* Lamp, lightbulb, torch, candle.
 
@@ -66,11 +69,14 @@ rootNode.addLight(lamp_light);
 
 === DirectionalLight
 
+[.float-group]
+--
 [.right.text-left]
 image::jme3/advanced/house-directionallight.png[A house model illuminated with a sun-like directional light,width="300",height="210",align="right"]
 
 
 A DirectionalLight has no position, only a direction. It sends out parallel beams of light and is considered “infinitely far away. You typically have one directional light per scene. A DirectionalLight can be used together with shadows.
+--
 
 *Typically example:* Sun light.
 
@@ -85,11 +91,14 @@ rootNode.addLight(sun);
 
 === SpotLight
 
+[.float-group]
+--
 [.right.text-left]
 image::jme3/advanced/spotlight.png[Spotlight,width="",height="",align="right"]
 
 
 A SpotLight sends out a distinct beam or cone of light. A SpotLight has a direction, a position, distance (range) and two angles. The inner angle is the central maximum of the light cone, the outer angle the edge of the light cone. Everything outside the light cone's angles is not affected by the light.
+--
 
 *Typical Example:* Flashlight