mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Added command to reload shaders at runtime, added support for shared scripts to Manifest, lights are now loadable from MapParser, misc changes.
This commit is contained in:
@@ -19,7 +19,7 @@ class IMICFPS
|
||||
|
||||
@devisor = 500.0
|
||||
@name_image = Gosu::Image.from_text("#{Etc.getlogin}", 100, font: "Consolas", align: :center)
|
||||
@name_texture_id = Texture.new(@name_image).id
|
||||
@name_texture_id = Texture.new(image: @name_image).id
|
||||
end
|
||||
|
||||
def draw_nameplate
|
||||
|
||||
@@ -8,10 +8,10 @@ class IMICFPS
|
||||
def initialize(
|
||||
id:,
|
||||
type: Light::POINT,
|
||||
ambient: Vector.new(0.5, 0.5, 0.5, 1),
|
||||
diffuse: Vector.new(1, 1, 1, 1),
|
||||
specular: Vector.new(0.2, 0.2, 0.2, 1),
|
||||
position: Vector.new(0, 0, 0, 0),
|
||||
ambient: Vector.new(0.5, 0.5, 0.5),
|
||||
diffuse: Vector.new(1, 1, 1),
|
||||
specular: Vector.new(0.2, 0.2, 0.2),
|
||||
position: Vector.new(0, 0, 0),
|
||||
intensity: 1
|
||||
)
|
||||
@light_id = id
|
||||
|
||||
Reference in New Issue
Block a user