Skip to content

EntityFX

Narta Xaymar Dirks edited this page Oct 29, 2026 · 6 revisions
Blitz3D

EntityFX

EntityFX:Void entity:Int32, fx:Int32
Parameter Mode Type Default Description
entity In Int32 required Entity handle.
fx In Int32 required Sum of the effect flags, 0 for none.

Description

Switches extra effects on for an entity. The flags add up, so 3 is full-bright with vertex colors.

  • 1: full-bright, the entity ignores lights.
  • 2: use the colors of the vertices instead of the entity color.
  • 4: flat shading, every triangle is lit as a whole.
  • 8: the entity ignores fog.
  • 16: draw both sides of the triangles.
  • 32: force alpha blending, which is needed for the alpha of vertex colors to work.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
camera = CreateCamera()
PositionEntity camera, 0, 1.5, -9
RotateEntity camera, 10, 0, 0
light = CreateLight()
RotateEntity light, 45, 45, 0
; Left to right: lit ball, full-bright ball, open tube, open tube that shows both sides.
For i = 0 To 3
	If i < 2 Then ball = CreateSphere(16) Else ball = CreateCylinder(16, 0)
	PositionEntity ball, i * 2.4 - 3.6, 0, 0
	EntityColor ball, 200, 120, 40
	If i = 1 Then EntityFX ball, 1
	If i = 3 Then EntityFX ball, 16
Next
RenderWorld
Flip
WaitKey

Media

EntityFX

Related Commands

EntityAlpha, EntityAutoFade, EntityBlend, EntityClass, EntityColor, EntityDepthFade 〔BlitzLLVM〕, EntityDistance, EntityInView

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally